primevue 2.10.0 → 2.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +150 -3
- package/accordion/accordion.common.js +2 -7
- package/accordion/accordion.umd.js +2 -7
- package/accordiontab/accordiontab.common.js +15 -68
- package/accordiontab/accordiontab.umd.js +15 -68
- package/api/Api.d.ts +24 -2
- package/api/Api.js +0 -6
- package/api/FilterService.js +2 -55
- package/api/PrimeIcons.js +24 -2
- package/api/api.common.js +35 -98
- package/api/api.umd.js +35 -98
- package/api/api.umd.min.js +1 -1
- package/api/filterservice.common.js +11 -96
- package/api/filterservice.umd.js +11 -96
- package/api/primeicons.common.js +24 -2
- package/api/primeicons.umd.js +24 -2
- package/api/primeicons.umd.min.js +1 -1
- package/autocomplete/autocomplete.common.js +33 -189
- package/autocomplete/autocomplete.umd.js +33 -189
- package/avatar/avatar.common.js +2 -4
- package/avatar/avatar.umd.js +2 -4
- package/avatargroup/avatargroup.common.js +2 -4
- package/avatargroup/avatargroup.umd.js +2 -4
- package/badge/badge.common.js +2 -4
- package/badge/badge.umd.js +2 -4
- package/badgedirective/BadgeDirective.js +0 -13
- package/badgedirective/badgedirective.common.js +13 -71
- package/badgedirective/badgedirective.umd.js +13 -71
- package/blockui/blockui.common.js +15 -73
- package/blockui/blockui.umd.js +15 -73
- package/breadcrumb/breadcrumb.common.js +7 -12
- package/breadcrumb/breadcrumb.umd.js +7 -12
- package/breadcrumb/breadcrumbitem.common.js +5 -8
- package/breadcrumb/breadcrumbitem.umd.js +5 -8
- package/button/button.common.js +15 -81
- package/button/button.umd.js +15 -81
- package/calendar/calendar.common.js +109 -498
- package/calendar/calendar.umd.js +109 -498
- package/card/card.common.js +2 -4
- package/card/card.umd.js +2 -4
- package/carousel/carousel.common.js +15 -123
- package/carousel/carousel.umd.js +15 -123
- package/cascadeselect/cascadeselect.common.js +29 -187
- package/cascadeselect/cascadeselect.umd.js +29 -187
- package/cascadeselect/cascadeselectsub.common.js +25 -149
- package/cascadeselect/cascadeselectsub.umd.js +25 -149
- package/cascadeselect/demo.html +4 -3
- package/chart/chart.common.js +2 -9
- package/chart/chart.umd.js +2 -9
- package/checkbox/checkbox.common.js +11 -61
- package/checkbox/checkbox.umd.js +11 -61
- package/chip/chip.common.js +2 -4
- package/chip/chip.umd.js +2 -4
- package/chips/chips.common.js +3 -20
- package/chips/chips.umd.js +3 -20
- package/colorpicker/colorpicker.common.js +16 -111
- package/colorpicker/colorpicker.umd.js +16 -111
- package/columngroup/columngroup.common.js +2 -4
- package/columngroup/columngroup.umd.js +2 -4
- package/config/PrimeVue.js +0 -5
- package/config/primevue.common.js +35 -102
- package/config/primevue.umd.js +35 -102
- package/config/primevue.umd.min.js +1 -1
- package/confirmationeventbus/ConfirmationEventBus.js +0 -4
- package/confirmationeventbus/confirmationeventbus.common.js +0 -2
- package/confirmationeventbus/confirmationeventbus.umd.js +0 -2
- package/confirmationservice/ConfirmationService.js +0 -3
- package/confirmationservice/confirmationservice.common.js +0 -2
- package/confirmationservice/confirmationservice.umd.js +0 -2
- package/confirmdialog/confirmdialog.common.js +19 -107
- package/confirmdialog/confirmdialog.umd.js +19 -107
- package/confirmpopup/confirmpopup.common.js +17 -109
- package/confirmpopup/confirmpopup.umd.js +17 -109
- package/contextmenu/contextmenu.common.js +28 -111
- package/contextmenu/contextmenu.umd.js +28 -111
- package/contextmenu/contextmenusub.common.js +18 -90
- package/contextmenu/contextmenusub.umd.js +18 -90
- package/datatable/bodycell.common.js +28 -164
- package/datatable/bodycell.umd.js +28 -164
- package/datatable/columnfilter.common.js +35 -247
- package/datatable/columnfilter.umd.js +35 -247
- package/datatable/datatable.common.js +165 -855
- package/datatable/datatable.umd.js +165 -855
- package/datatable/datatable.umd.min.js +1 -1
- package/datatable/demo.html +3 -5
- package/datatable/footercell.common.js +24 -119
- package/datatable/footercell.umd.js +24 -119
- package/datatable/headercell.common.js +39 -266
- package/datatable/headercell.umd.js +39 -266
- package/datatable/headercheckbox.common.js +2 -4
- package/datatable/headercheckbox.umd.js +2 -4
- package/datatable/rowcheckbox.common.js +2 -4
- package/datatable/rowcheckbox.umd.js +2 -4
- package/datatable/rowradiobutton.common.js +2 -4
- package/datatable/rowradiobutton.umd.js +2 -4
- package/datatable/tablebody.common.js +30 -191
- package/datatable/tablebody.umd.js +30 -191
- package/datatable/tablefooter.common.js +27 -135
- package/datatable/tablefooter.umd.js +27 -135
- package/datatable/tableheader.common.js +41 -273
- package/datatable/tableheader.umd.js +41 -273
- package/datatable/tableloadingbody.common.js +2 -4
- package/datatable/tableloadingbody.umd.js +2 -4
- package/dataview/dataview.common.js +121 -407
- package/dataview/dataview.umd.js +121 -407
- package/dataview/dataview.umd.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.common.js +2 -4
- package/dataviewlayoutoptions/dataviewlayoutoptions.umd.js +2 -4
- package/deferredcontent/deferredcontent.common.js +2 -7
- package/deferredcontent/deferredcontent.umd.js +2 -7
- package/dialog/dialog.common.js +15 -93
- package/dialog/dialog.umd.js +15 -93
- package/divider/divider.common.js +2 -4
- package/divider/divider.umd.js +2 -4
- package/dock/dock.common.js +7 -14
- package/dock/dock.umd.js +7 -14
- package/dock/docksub.common.js +5 -9
- package/dock/docksub.umd.js +5 -9
- package/dropdown/dropdown.common.js +31 -188
- package/dropdown/dropdown.umd.js +31 -188
- package/editor/editor.common.js +8 -21
- package/editor/editor.umd.js +8 -21
- package/fieldset/fieldset.common.js +15 -81
- package/fieldset/fieldset.umd.js +15 -81
- package/fileupload/fileupload.common.js +28 -142
- package/fileupload/fileupload.umd.js +28 -142
- package/fullcalendar/fullcalendar.common.js +10 -17
- package/fullcalendar/fullcalendar.umd.js +10 -17
- package/fullcalendar/fullcalendar.umd.min.js +3 -3
- package/galleria/galleria.common.js +25 -147
- package/galleria/galleria.umd.js +25 -147
- package/galleria/galleriacontent.common.js +23 -137
- package/galleria/galleriacontent.umd.js +23 -137
- package/galleria/galleriaitem.common.js +19 -93
- package/galleria/galleriaitem.umd.js +19 -93
- package/galleria/galleriaitemslot.common.js +4 -10
- package/galleria/galleriaitemslot.umd.js +4 -10
- package/galleria/galleriathumbnails.common.js +19 -125
- package/galleria/galleriathumbnails.umd.js +19 -125
- package/imagepreview/imagepreview.common.js +16 -71
- package/imagepreview/imagepreview.umd.js +16 -71
- package/inlinemessage/inlinemessage.common.js +2 -5
- package/inlinemessage/inlinemessage.umd.js +2 -5
- package/inplace/inplace.common.js +17 -85
- package/inplace/inplace.umd.js +17 -85
- package/inputmask/inputmask.common.js +31 -155
- package/inputmask/inputmask.umd.js +31 -155
- package/inputnumber/InputNumber.vue +2 -2
- package/inputnumber/inputnumber.common.js +73 -233
- package/inputnumber/inputnumber.umd.js +73 -233
- package/inputnumber/inputnumber.umd.min.js +1 -1
- package/inputswitch/inputswitch.common.js +2 -5
- package/inputswitch/inputswitch.umd.js +2 -5
- package/inputtext/inputtext.common.js +2 -9
- package/inputtext/inputtext.umd.js +2 -9
- package/knob/knob.common.js +4 -5
- package/knob/knob.umd.js +4 -5
- package/listbox/listbox.common.js +27 -156
- package/listbox/listbox.umd.js +27 -156
- package/megamenu/megamenu.common.js +24 -111
- package/megamenu/megamenu.umd.js +24 -111
- package/menu/menu.common.js +20 -107
- package/menu/menu.umd.js +20 -107
- package/menu/menuitem.common.js +18 -84
- package/menu/menuitem.umd.js +18 -84
- package/menubar/demo.html +4 -3
- package/menubar/menubar.common.js +23 -112
- package/menubar/menubar.umd.js +23 -112
- package/menubar/menubarsub.common.js +21 -106
- package/menubar/menubarsub.umd.js +21 -106
- package/message/message.common.js +15 -82
- package/message/message.umd.js +15 -82
- package/multiselect/multiselect.common.js +32 -189
- package/multiselect/multiselect.umd.js +32 -189
- package/orderlist/orderlist.common.js +28 -162
- package/orderlist/orderlist.umd.js +28 -162
- package/organizationchart/organizationchart.common.js +17 -82
- package/organizationchart/organizationchart.umd.js +17 -82
- package/organizationchart/organizationchartnode.common.js +15 -68
- package/organizationchart/organizationchartnode.umd.js +15 -68
- package/overlayeventbus/OverlayEventBus.js +0 -4
- package/overlayeventbus/overlayeventbus.common.js +0 -2
- package/overlayeventbus/overlayeventbus.umd.js +0 -2
- package/overlaypanel/overlaypanel.common.js +15 -104
- package/overlaypanel/overlaypanel.umd.js +15 -104
- package/package.json +2 -2
- package/paginator/currentpagereport.common.js +2 -4
- package/paginator/currentpagereport.umd.js +2 -4
- package/paginator/firstpagelink.common.js +15 -81
- package/paginator/firstpagelink.umd.js +15 -81
- package/paginator/jumptopagedropdown.common.js +33 -194
- package/paginator/jumptopagedropdown.umd.js +33 -194
- package/paginator/jumptopageinput.common.js +79 -241
- package/paginator/jumptopageinput.umd.js +79 -241
- package/paginator/jumptopageinput.umd.min.js +1 -1
- package/paginator/lastpagelink.common.js +15 -81
- package/paginator/lastpagelink.umd.js +15 -81
- package/paginator/nextpagelink.common.js +15 -81
- package/paginator/nextpagelink.umd.js +15 -81
- package/paginator/pagelinks.common.js +15 -81
- package/paginator/pagelinks.umd.js +15 -81
- package/paginator/paginator.common.js +119 -399
- package/paginator/paginator.umd.js +119 -399
- package/paginator/paginator.umd.min.js +1 -1
- package/paginator/prevpagelink.common.js +15 -81
- package/paginator/prevpagelink.umd.js +15 -81
- package/paginator/rowsperpagedropdown.common.js +33 -194
- package/paginator/rowsperpagedropdown.umd.js +33 -194
- package/panel/panel.common.js +15 -81
- package/panel/panel.umd.js +15 -81
- package/panelmenu/panelmenu.common.js +10 -22
- package/panelmenu/panelmenu.umd.js +10 -22
- package/panelmenu/panelmenusub.common.js +5 -11
- package/panelmenu/panelmenusub.umd.js +5 -11
- package/password/Password.vue +38 -11
- package/password/password.common.js +117 -179
- package/password/password.umd.js +117 -179
- package/password/password.umd.min.js +1 -1
- package/picklist/picklist.common.js +28 -194
- package/picklist/picklist.umd.js +28 -194
- package/progressbar/progressbar.common.js +2 -4
- package/progressbar/progressbar.umd.js +2 -4
- package/progressspinner/progressspinner.common.js +2 -5
- package/progressspinner/progressspinner.umd.js +2 -5
- package/radiobutton/radiobutton.common.js +11 -57
- package/radiobutton/radiobutton.umd.js +11 -57
- package/rating/rating.common.js +2 -4
- package/rating/rating.umd.js +2 -4
- package/ripple/Ripple.js +0 -18
- package/ripple/ripple.common.js +13 -77
- package/ripple/ripple.umd.js +13 -77
- package/row/row.common.js +2 -4
- package/row/row.umd.js +2 -4
- package/scrollpanel/scrollpanel.common.js +18 -83
- package/scrollpanel/scrollpanel.umd.js +18 -83
- package/scrolltop/scrolltop.common.js +15 -71
- package/scrolltop/scrolltop.umd.js +15 -71
- package/selectbutton/selectbutton.common.js +25 -143
- package/selectbutton/selectbutton.umd.js +25 -143
- package/sidebar/Sidebar.d.ts +1 -0
- package/sidebar/Sidebar.vue +3 -0
- package/sidebar/sidebar.common.js +63 -137
- package/sidebar/sidebar.umd.js +63 -137
- package/sidebar/sidebar.umd.min.js +1 -1
- package/skeleton/skeleton.common.js +2 -4
- package/skeleton/skeleton.umd.js +2 -4
- package/slider/Slider.vue +1 -1
- package/slider/slider.common.js +64 -139
- package/slider/slider.umd.js +64 -139
- package/slider/slider.umd.min.js +1 -1
- package/speeddial/SpeedDial.vue +2 -2
- package/speeddial/speeddial.common.js +63 -152
- package/speeddial/speeddial.umd.js +63 -152
- package/speeddial/speeddial.umd.min.js +1 -1
- package/splitbutton/splitbutton.common.js +24 -115
- package/splitbutton/splitbutton.umd.js +24 -115
- package/splitter/splitter.common.js +13 -84
- package/splitter/splitter.umd.js +13 -84
- package/steps/steps.common.js +5 -9
- package/steps/steps.umd.js +5 -9
- package/styleclass/StyleClass.js +0 -43
- package/styleclass/styleclass.common.js +13 -99
- package/styleclass/styleclass.umd.js +13 -99
- package/tabmenu/tabmenu.common.js +15 -86
- package/tabmenu/tabmenu.umd.js +15 -86
- package/tabpanel/tabpanel.common.js +2 -5
- package/tabpanel/tabpanel.umd.js +2 -5
- package/tabview/tabview.common.js +27 -134
- package/tabview/tabview.umd.js +27 -134
- package/tag/tag.common.js +2 -4
- package/tag/tag.umd.js +2 -4
- package/terminal/terminal.common.js +2 -4
- package/terminal/terminal.umd.js +2 -4
- package/terminalservice/TerminalService.js +0 -3
- package/textarea/Textarea.vue +24 -1
- package/textarea/textarea.common.js +2045 -60
- package/textarea/textarea.umd.js +2045 -60
- package/textarea/textarea.umd.min.js +1 -1
- package/tieredmenu/tieredmenu.common.js +22 -124
- package/tieredmenu/tieredmenu.umd.js +22 -124
- package/tieredmenu/tieredmenusub.common.js +20 -102
- package/tieredmenu/tieredmenusub.umd.js +20 -102
- package/timeline/timeline.common.js +11 -56
- package/timeline/timeline.umd.js +11 -56
- package/toast/toast.common.js +17 -97
- package/toast/toast.umd.js +17 -97
- package/toast/toastmessage.common.js +15 -82
- package/toast/toastmessage.umd.js +15 -82
- package/toastservice/ToastEventBus.js +0 -3
- package/toastservice/ToastService.js +0 -3
- package/togglebutton/togglebutton.common.js +15 -81
- package/togglebutton/togglebutton.umd.js +15 -81
- package/toolbar/toolbar.common.js +2 -4
- package/toolbar/toolbar.umd.js +2 -4
- package/tooltip/Tooltip.js +4 -84
- package/tooltip/tooltip.common.js +17 -133
- package/tooltip/tooltip.umd.js +17 -133
- package/tree/tree.common.js +36 -211
- package/tree/tree.umd.js +36 -211
- package/tree/treenode.common.js +20 -117
- package/tree/treenode.umd.js +20 -117
- package/treetable/footercell.common.js +24 -119
- package/treetable/footercell.umd.js +24 -119
- package/treetable/headercell.common.js +24 -127
- package/treetable/headercell.umd.js +24 -127
- package/treetable/treetable.common.js +149 -625
- package/treetable/treetable.umd.js +149 -625
- package/treetable/treetable.umd.min.js +1 -1
- package/treetable/treetablerow.common.js +29 -159
- package/treetable/treetablerow.umd.js +29 -159
- package/treetable/treetablerowloader.common.js +31 -179
- package/treetable/treetablerowloader.umd.js +31 -179
- package/tristatecheckbox/tristatecheckbox.common.js +2 -12
- package/tristatecheckbox/tristatecheckbox.umd.js +2 -12
- package/utils/ConnectedOverlayScrollHandler.js +0 -12
- package/utils/DomHandler.js +13 -61
- package/utils/EventBus.js +0 -3
- package/utils/ObjectUtils.js +9 -51
- package/utils/UniqueComponentId.js +0 -1
- package/utils/Utils.js +0 -6
- package/utils/connectedoverlayscrollhandler.common.js +13 -70
- package/utils/connectedoverlayscrollhandler.umd.js +13 -70
- package/utils/domhandler.common.js +13 -63
- package/utils/domhandler.umd.js +13 -63
- package/utils/eventbus.common.js +0 -2
- package/utils/eventbus.umd.js +0 -2
- package/utils/objectutils.common.js +9 -52
- package/utils/objectutils.umd.js +9 -52
- package/utils/utils.common.js +22 -119
- package/utils/utils.umd.js +22 -119
- package/web-types.json +8 -1
package/dropdown/dropdown.umd.js
CHANGED
|
@@ -4547,11 +4547,10 @@ if (typeof window !== 'undefined') {
|
|
|
4547
4547
|
// Indicate to webpack that this file can be concatenated
|
|
4548
4548
|
/* harmony default export */ var setPublicPath = (null);
|
|
4549
4549
|
|
|
4550
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4550
|
+
// 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&
|
|
4551
4551
|
var render = function render() {
|
|
4552
4552
|
var _vm = this,
|
|
4553
|
-
|
|
4554
|
-
|
|
4553
|
+
_c = _vm._self._c;
|
|
4555
4554
|
return _c('div', {
|
|
4556
4555
|
ref: "container",
|
|
4557
4556
|
class: _vm.containerClass,
|
|
@@ -4695,7 +4694,6 @@ var render = function render() {
|
|
|
4695
4694
|
staticClass: "p-dropdown-empty-message"
|
|
4696
4695
|
}, [_vm._v(_vm._s(_vm.emptyFilterMessage))]) : _vm._e()], 2)])]) : _vm._e()])], 1);
|
|
4697
4696
|
};
|
|
4698
|
-
|
|
4699
4697
|
var staticRenderFns = [];
|
|
4700
4698
|
|
|
4701
4699
|
// CONCATENATED MODULE: ./src/components/dropdown/Dropdown.vue?vue&type=template&id=0ebc4c6d&
|
|
@@ -4736,26 +4734,21 @@ var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property
|
|
|
4736
4734
|
|
|
4737
4735
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
|
|
4738
4736
|
|
|
4739
|
-
|
|
4740
4737
|
function _defineProperties(target, props) {
|
|
4741
4738
|
for (var i = 0; i < props.length; i++) {
|
|
4742
4739
|
var descriptor = props[i];
|
|
4743
4740
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
4744
4741
|
descriptor.configurable = true;
|
|
4745
4742
|
if ("value" in descriptor) descriptor.writable = true;
|
|
4746
|
-
|
|
4747
4743
|
define_property_default()(target, descriptor.key, descriptor);
|
|
4748
4744
|
}
|
|
4749
4745
|
}
|
|
4750
|
-
|
|
4751
4746
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
4752
4747
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
4753
4748
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
4754
|
-
|
|
4755
4749
|
define_property_default()(Constructor, "prototype", {
|
|
4756
4750
|
writable: false
|
|
4757
4751
|
});
|
|
4758
|
-
|
|
4759
4752
|
return Constructor;
|
|
4760
4753
|
}
|
|
4761
4754
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.find.js
|
|
@@ -4783,18 +4776,13 @@ var es6_regexp_split = __webpack_require__("28a5");
|
|
|
4783
4776
|
|
|
4784
4777
|
|
|
4785
4778
|
|
|
4786
|
-
|
|
4787
4779
|
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; } } }; }
|
|
4788
|
-
|
|
4789
4780
|
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); }
|
|
4790
|
-
|
|
4791
4781
|
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; }
|
|
4792
|
-
|
|
4793
4782
|
var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
4794
4783
|
function DomHandler() {
|
|
4795
4784
|
_classCallCheck(this, DomHandler);
|
|
4796
4785
|
}
|
|
4797
|
-
|
|
4798
4786
|
_createClass(DomHandler, null, [{
|
|
4799
4787
|
key: "innerWidth",
|
|
4800
4788
|
value: function innerWidth(el) {
|
|
@@ -4828,12 +4816,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4828
4816
|
value: function getOuterWidth(el, margin) {
|
|
4829
4817
|
if (el) {
|
|
4830
4818
|
var width = el.offsetWidth;
|
|
4831
|
-
|
|
4832
4819
|
if (margin) {
|
|
4833
4820
|
var style = getComputedStyle(el);
|
|
4834
4821
|
width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
4835
4822
|
}
|
|
4836
|
-
|
|
4837
4823
|
return width;
|
|
4838
4824
|
} else {
|
|
4839
4825
|
return 0;
|
|
@@ -4844,12 +4830,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4844
4830
|
value: function getOuterHeight(el, margin) {
|
|
4845
4831
|
if (el) {
|
|
4846
4832
|
var height = el.offsetHeight;
|
|
4847
|
-
|
|
4848
4833
|
if (margin) {
|
|
4849
4834
|
var style = getComputedStyle(el);
|
|
4850
4835
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
4851
4836
|
}
|
|
4852
|
-
|
|
4853
4837
|
return height;
|
|
4854
4838
|
} else {
|
|
4855
4839
|
return 0;
|
|
@@ -4860,12 +4844,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4860
4844
|
value: function getClientHeight(el, margin) {
|
|
4861
4845
|
if (el) {
|
|
4862
4846
|
var height = el.clientHeight;
|
|
4863
|
-
|
|
4864
4847
|
if (margin) {
|
|
4865
4848
|
var style = getComputedStyle(el);
|
|
4866
4849
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
4867
4850
|
}
|
|
4868
|
-
|
|
4869
4851
|
return height;
|
|
4870
4852
|
} else {
|
|
4871
4853
|
return 0;
|
|
@@ -4875,11 +4857,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4875
4857
|
key: "getViewport",
|
|
4876
4858
|
value: function getViewport() {
|
|
4877
4859
|
var win = window,
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4860
|
+
d = document,
|
|
4861
|
+
e = d.documentElement,
|
|
4862
|
+
g = d.getElementsByTagName('body')[0],
|
|
4863
|
+
w = win.innerWidth || e.clientWidth || g.clientWidth,
|
|
4864
|
+
h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
4883
4865
|
return {
|
|
4884
4866
|
width: w,
|
|
4885
4867
|
height: h
|
|
@@ -4910,12 +4892,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4910
4892
|
value: function index(element) {
|
|
4911
4893
|
var children = element.parentNode.childNodes;
|
|
4912
4894
|
var num = 0;
|
|
4913
|
-
|
|
4914
4895
|
for (var i = 0; i < children.length; i++) {
|
|
4915
4896
|
if (children[i] === element) return num;
|
|
4916
4897
|
if (children[i].nodeType === 1) num++;
|
|
4917
4898
|
}
|
|
4918
|
-
|
|
4919
4899
|
return -1;
|
|
4920
4900
|
}
|
|
4921
4901
|
}, {
|
|
@@ -4923,13 +4903,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4923
4903
|
value: function addMultipleClasses(element, className) {
|
|
4924
4904
|
if (element.classList) {
|
|
4925
4905
|
var styles = className.split(' ');
|
|
4926
|
-
|
|
4927
4906
|
for (var i = 0; i < styles.length; i++) {
|
|
4928
4907
|
element.classList.add(styles[i]);
|
|
4929
4908
|
}
|
|
4930
4909
|
} else {
|
|
4931
4910
|
var _styles = className.split(' ');
|
|
4932
|
-
|
|
4933
4911
|
for (var _i = 0; _i < _styles.length; _i++) {
|
|
4934
4912
|
element.className += ' ' + _styles[_i];
|
|
4935
4913
|
}
|
|
@@ -4951,7 +4929,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4951
4929
|
if (element) {
|
|
4952
4930
|
if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
4953
4931
|
}
|
|
4954
|
-
|
|
4955
4932
|
return false;
|
|
4956
4933
|
}
|
|
4957
4934
|
}, {
|
|
@@ -4996,11 +4973,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4996
4973
|
var windowScrollLeft = this.getWindowScrollLeft();
|
|
4997
4974
|
var viewport = this.getViewport();
|
|
4998
4975
|
var top, left;
|
|
4999
|
-
|
|
5000
4976
|
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
5001
4977
|
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
5002
4978
|
element.style.transformOrigin = 'bottom';
|
|
5003
|
-
|
|
5004
4979
|
if (top < 0) {
|
|
5005
4980
|
top = windowScrollTop;
|
|
5006
4981
|
}
|
|
@@ -5008,7 +4983,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5008
4983
|
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
5009
4984
|
element.style.transformOrigin = 'top';
|
|
5010
4985
|
}
|
|
5011
|
-
|
|
5012
4986
|
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
|
|
5013
4987
|
element.style.top = top + 'px';
|
|
5014
4988
|
element.style.left = left + 'px';
|
|
@@ -5024,11 +4998,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5024
4998
|
var targetOffset = target.getBoundingClientRect();
|
|
5025
4999
|
var viewport = this.getViewport();
|
|
5026
5000
|
var top, left;
|
|
5027
|
-
|
|
5028
5001
|
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
5029
5002
|
top = -1 * elementDimensions.height;
|
|
5030
5003
|
element.style.transformOrigin = 'bottom';
|
|
5031
|
-
|
|
5032
5004
|
if (targetOffset.top + top < 0) {
|
|
5033
5005
|
top = -1 * targetOffset.top;
|
|
5034
5006
|
}
|
|
@@ -5036,7 +5008,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5036
5008
|
top = targetHeight;
|
|
5037
5009
|
element.style.transformOrigin = 'top';
|
|
5038
5010
|
}
|
|
5039
|
-
|
|
5040
5011
|
if (elementDimensions.width > viewport.width) {
|
|
5041
5012
|
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
5042
5013
|
left = targetOffset.left * -1;
|
|
@@ -5047,7 +5018,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5047
5018
|
// element fits on screen (align with target)
|
|
5048
5019
|
left = 0;
|
|
5049
5020
|
}
|
|
5050
|
-
|
|
5051
5021
|
element.style.top = top + 'px';
|
|
5052
5022
|
element.style.left = left + 'px';
|
|
5053
5023
|
}
|
|
@@ -5061,35 +5031,27 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5061
5031
|
key: "getScrollableParents",
|
|
5062
5032
|
value: function getScrollableParents(element) {
|
|
5063
5033
|
var scrollableParents = [];
|
|
5064
|
-
|
|
5065
5034
|
if (element) {
|
|
5066
5035
|
var parents = this.getParents(element);
|
|
5067
5036
|
var overflowRegex = /(auto|scroll)/;
|
|
5068
|
-
|
|
5069
5037
|
var overflowCheck = function overflowCheck(node) {
|
|
5070
5038
|
var styleDeclaration = window['getComputedStyle'](node, null);
|
|
5071
5039
|
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
5072
5040
|
};
|
|
5073
|
-
|
|
5074
5041
|
var _iterator = _createForOfIteratorHelper(parents),
|
|
5075
|
-
|
|
5076
|
-
|
|
5042
|
+
_step;
|
|
5077
5043
|
try {
|
|
5078
5044
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5079
5045
|
var parent = _step.value;
|
|
5080
5046
|
var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
5081
|
-
|
|
5082
5047
|
if (scrollSelectors) {
|
|
5083
5048
|
var selectors = scrollSelectors.split(',');
|
|
5084
|
-
|
|
5085
5049
|
var _iterator2 = _createForOfIteratorHelper(selectors),
|
|
5086
|
-
|
|
5087
|
-
|
|
5050
|
+
_step2;
|
|
5088
5051
|
try {
|
|
5089
5052
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
5090
5053
|
var selector = _step2.value;
|
|
5091
5054
|
var el = this.findSingle(parent, selector);
|
|
5092
|
-
|
|
5093
5055
|
if (el && overflowCheck(el)) {
|
|
5094
5056
|
scrollableParents.push(el);
|
|
5095
5057
|
}
|
|
@@ -5107,7 +5069,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5107
5069
|
_iterator.f();
|
|
5108
5070
|
}
|
|
5109
5071
|
}
|
|
5110
|
-
|
|
5111
5072
|
return scrollableParents;
|
|
5112
5073
|
}
|
|
5113
5074
|
}, {
|
|
@@ -5148,34 +5109,29 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5148
5109
|
element.style.opacity = 0;
|
|
5149
5110
|
var last = +new Date();
|
|
5150
5111
|
var opacity = 0;
|
|
5151
|
-
|
|
5152
5112
|
var tick = function tick() {
|
|
5153
5113
|
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
5154
5114
|
element.style.opacity = opacity;
|
|
5155
5115
|
last = +new Date();
|
|
5156
|
-
|
|
5157
5116
|
if (+opacity < 1) {
|
|
5158
5117
|
window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
|
|
5159
5118
|
}
|
|
5160
5119
|
};
|
|
5161
|
-
|
|
5162
5120
|
tick();
|
|
5163
5121
|
}
|
|
5164
5122
|
}, {
|
|
5165
5123
|
key: "fadeOut",
|
|
5166
5124
|
value: function fadeOut(element, ms) {
|
|
5167
5125
|
var opacity = 1,
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5126
|
+
interval = 50,
|
|
5127
|
+
duration = ms,
|
|
5128
|
+
gap = interval / duration;
|
|
5171
5129
|
var fading = setInterval(function () {
|
|
5172
5130
|
opacity -= gap;
|
|
5173
|
-
|
|
5174
5131
|
if (opacity <= 0) {
|
|
5175
5132
|
opacity = 0;
|
|
5176
5133
|
clearInterval(fading);
|
|
5177
5134
|
}
|
|
5178
|
-
|
|
5179
5135
|
element.style.opacity = opacity;
|
|
5180
5136
|
}, interval);
|
|
5181
5137
|
}
|
|
@@ -5202,7 +5158,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5202
5158
|
var scroll = container.scrollTop;
|
|
5203
5159
|
var elementHeight = container.clientHeight;
|
|
5204
5160
|
var itemHeight = this.getOuterHeight(item);
|
|
5205
|
-
|
|
5206
5161
|
if (offset < 0) {
|
|
5207
5162
|
container.scrollTop = scroll + offset;
|
|
5208
5163
|
} else if (offset + itemHeight > elementHeight) {
|
|
@@ -5221,7 +5176,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5221
5176
|
} else if (document['selection'] && document['selection'].empty) {
|
|
5222
5177
|
try {
|
|
5223
5178
|
document['selection'].empty();
|
|
5224
|
-
} catch (error) {
|
|
5179
|
+
} catch (error) {
|
|
5180
|
+
//ignore IE bug
|
|
5225
5181
|
}
|
|
5226
5182
|
}
|
|
5227
5183
|
}
|
|
@@ -5243,19 +5199,16 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5243
5199
|
if (!this.browser) {
|
|
5244
5200
|
var matched = this.resolveUserAgent();
|
|
5245
5201
|
this.browser = {};
|
|
5246
|
-
|
|
5247
5202
|
if (matched.browser) {
|
|
5248
5203
|
this.browser[matched.browser] = true;
|
|
5249
5204
|
this.browser['version'] = matched.version;
|
|
5250
5205
|
}
|
|
5251
|
-
|
|
5252
5206
|
if (this.browser['chrome']) {
|
|
5253
5207
|
this.browser['webkit'] = true;
|
|
5254
5208
|
} else if (this.browser['webkit']) {
|
|
5255
5209
|
this.browser['safari'] = true;
|
|
5256
5210
|
}
|
|
5257
5211
|
}
|
|
5258
|
-
|
|
5259
5212
|
return this.browser;
|
|
5260
5213
|
}
|
|
5261
5214
|
}, {
|
|
@@ -5283,10 +5236,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5283
5236
|
value: function getFocusableElements(element) {
|
|
5284
5237
|
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])");
|
|
5285
5238
|
var visibleFocusableElements = [];
|
|
5286
|
-
|
|
5287
5239
|
var _iterator3 = _createForOfIteratorHelper(focusableElements),
|
|
5288
|
-
|
|
5289
|
-
|
|
5240
|
+
_step3;
|
|
5290
5241
|
try {
|
|
5291
5242
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
5292
5243
|
var focusableElement = _step3.value;
|
|
@@ -5297,7 +5248,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5297
5248
|
} finally {
|
|
5298
5249
|
_iterator3.f();
|
|
5299
5250
|
}
|
|
5300
|
-
|
|
5301
5251
|
return visibleFocusableElements;
|
|
5302
5252
|
}
|
|
5303
5253
|
}, {
|
|
@@ -5340,31 +5290,24 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5340
5290
|
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
5341
5291
|
}
|
|
5342
5292
|
}]);
|
|
5343
|
-
|
|
5344
5293
|
return DomHandler;
|
|
5345
5294
|
}();
|
|
5346
5295
|
|
|
5347
|
-
|
|
5348
5296
|
// CONCATENATED MODULE: ./src/components/utils/ConnectedOverlayScrollHandler.js
|
|
5349
5297
|
|
|
5350
5298
|
|
|
5351
5299
|
|
|
5352
|
-
|
|
5353
5300
|
var ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler = /*#__PURE__*/function () {
|
|
5354
5301
|
function ConnectedOverlayScrollHandler(element) {
|
|
5355
5302
|
var listener = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
5356
|
-
|
|
5357
5303
|
_classCallCheck(this, ConnectedOverlayScrollHandler);
|
|
5358
|
-
|
|
5359
5304
|
this.element = element;
|
|
5360
5305
|
this.listener = listener;
|
|
5361
5306
|
}
|
|
5362
|
-
|
|
5363
5307
|
_createClass(ConnectedOverlayScrollHandler, [{
|
|
5364
5308
|
key: "bindScrollListener",
|
|
5365
5309
|
value: function bindScrollListener() {
|
|
5366
5310
|
this.scrollableParents = DomHandler_DomHandler.getScrollableParents(this.element);
|
|
5367
|
-
|
|
5368
5311
|
for (var i = 0; i < this.scrollableParents.length; i++) {
|
|
5369
5312
|
this.scrollableParents[i].addEventListener('scroll', this.listener);
|
|
5370
5313
|
}
|
|
@@ -5387,11 +5330,9 @@ var ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler = /*#__PURE__*/f
|
|
|
5387
5330
|
this.scrollableParents = null;
|
|
5388
5331
|
}
|
|
5389
5332
|
}]);
|
|
5390
|
-
|
|
5391
5333
|
return ConnectedOverlayScrollHandler;
|
|
5392
5334
|
}();
|
|
5393
5335
|
|
|
5394
|
-
|
|
5395
5336
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
|
|
5396
5337
|
var web_dom_iterable = __webpack_require__("ac6a");
|
|
5397
5338
|
|
|
@@ -5438,18 +5379,13 @@ function _typeof(obj) {
|
|
|
5438
5379
|
|
|
5439
5380
|
|
|
5440
5381
|
|
|
5441
|
-
|
|
5442
5382
|
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; } } }; }
|
|
5443
|
-
|
|
5444
5383
|
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); }
|
|
5445
|
-
|
|
5446
5384
|
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; }
|
|
5447
|
-
|
|
5448
5385
|
var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
5449
5386
|
function ObjectUtils() {
|
|
5450
5387
|
_classCallCheck(this, ObjectUtils);
|
|
5451
5388
|
}
|
|
5452
|
-
|
|
5453
5389
|
_createClass(ObjectUtils, null, [{
|
|
5454
5390
|
key: "equals",
|
|
5455
5391
|
value: function equals(obj1, obj2, field) {
|
|
@@ -5459,50 +5395,41 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5459
5395
|
key: "deepEquals",
|
|
5460
5396
|
value: function deepEquals(a, b) {
|
|
5461
5397
|
if (a === b) return true;
|
|
5462
|
-
|
|
5463
5398
|
if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
|
|
5464
5399
|
var arrA = Array.isArray(a),
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5400
|
+
arrB = Array.isArray(b),
|
|
5401
|
+
i,
|
|
5402
|
+
length,
|
|
5403
|
+
key;
|
|
5470
5404
|
if (arrA && arrB) {
|
|
5471
5405
|
length = a.length;
|
|
5472
5406
|
if (length != b.length) return false;
|
|
5473
|
-
|
|
5474
5407
|
for (i = length; i-- !== 0;) {
|
|
5475
5408
|
if (!this.deepEquals(a[i], b[i])) return false;
|
|
5476
5409
|
}
|
|
5477
|
-
|
|
5478
5410
|
return true;
|
|
5479
5411
|
}
|
|
5480
|
-
|
|
5481
5412
|
if (arrA != arrB) return false;
|
|
5482
5413
|
var dateA = a instanceof Date,
|
|
5483
|
-
|
|
5414
|
+
dateB = b instanceof Date;
|
|
5484
5415
|
if (dateA != dateB) return false;
|
|
5485
5416
|
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
5486
5417
|
var regexpA = a instanceof RegExp,
|
|
5487
|
-
|
|
5418
|
+
regexpB = b instanceof RegExp;
|
|
5488
5419
|
if (regexpA != regexpB) return false;
|
|
5489
5420
|
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
5490
5421
|
var keys = Object.keys(a);
|
|
5491
5422
|
length = keys.length;
|
|
5492
5423
|
if (length !== Object.keys(b).length) return false;
|
|
5493
|
-
|
|
5494
5424
|
for (i = length; i-- !== 0;) {
|
|
5495
5425
|
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
5496
5426
|
}
|
|
5497
|
-
|
|
5498
5427
|
for (i = length; i-- !== 0;) {
|
|
5499
5428
|
key = keys[i];
|
|
5500
5429
|
if (!this.deepEquals(a[key], b[key])) return false;
|
|
5501
5430
|
}
|
|
5502
|
-
|
|
5503
5431
|
return true;
|
|
5504
5432
|
}
|
|
5505
|
-
|
|
5506
5433
|
return a !== a && b !== b;
|
|
5507
5434
|
}
|
|
5508
5435
|
}, {
|
|
@@ -5516,15 +5443,12 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5516
5443
|
} else {
|
|
5517
5444
|
var fields = field.split('.');
|
|
5518
5445
|
var value = data;
|
|
5519
|
-
|
|
5520
5446
|
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
5521
5447
|
if (value == null) {
|
|
5522
5448
|
return null;
|
|
5523
5449
|
}
|
|
5524
|
-
|
|
5525
5450
|
value = value[fields[i]];
|
|
5526
5451
|
}
|
|
5527
|
-
|
|
5528
5452
|
return value;
|
|
5529
5453
|
}
|
|
5530
5454
|
} else {
|
|
@@ -5540,22 +5464,17 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5540
5464
|
key: "filter",
|
|
5541
5465
|
value: function filter(value, fields, filterValue) {
|
|
5542
5466
|
var filteredItems = [];
|
|
5543
|
-
|
|
5544
5467
|
if (value) {
|
|
5545
5468
|
var _iterator = ObjectUtils_createForOfIteratorHelper(value),
|
|
5546
|
-
|
|
5547
|
-
|
|
5469
|
+
_step;
|
|
5548
5470
|
try {
|
|
5549
5471
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5550
5472
|
var item = _step.value;
|
|
5551
|
-
|
|
5552
5473
|
var _iterator2 = ObjectUtils_createForOfIteratorHelper(fields),
|
|
5553
|
-
|
|
5554
|
-
|
|
5474
|
+
_step2;
|
|
5555
5475
|
try {
|
|
5556
5476
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
5557
5477
|
var field = _step2.value;
|
|
5558
|
-
|
|
5559
5478
|
if (String(this.resolveFieldData(item, field)).toLowerCase().indexOf(filterValue.toLowerCase()) > -1) {
|
|
5560
5479
|
filteredItems.push(item);
|
|
5561
5480
|
break;
|
|
@@ -5573,23 +5492,19 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5573
5492
|
_iterator.f();
|
|
5574
5493
|
}
|
|
5575
5494
|
}
|
|
5576
|
-
|
|
5577
5495
|
return filteredItems;
|
|
5578
5496
|
}
|
|
5579
5497
|
}, {
|
|
5580
5498
|
key: "reorderArray",
|
|
5581
5499
|
value: function reorderArray(value, from, to) {
|
|
5582
5500
|
var target;
|
|
5583
|
-
|
|
5584
5501
|
if (value && from !== to) {
|
|
5585
5502
|
if (to >= value.length) {
|
|
5586
5503
|
target = to - value.length;
|
|
5587
|
-
|
|
5588
5504
|
while (target-- + 1) {
|
|
5589
5505
|
value.push(undefined);
|
|
5590
5506
|
}
|
|
5591
5507
|
}
|
|
5592
|
-
|
|
5593
5508
|
value.splice(to, 0, value.splice(from, 1)[0]);
|
|
5594
5509
|
}
|
|
5595
5510
|
}
|
|
@@ -5597,7 +5512,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5597
5512
|
key: "findIndexInList",
|
|
5598
5513
|
value: function findIndexInList(value, list) {
|
|
5599
5514
|
var index = -1;
|
|
5600
|
-
|
|
5601
5515
|
if (list) {
|
|
5602
5516
|
for (var i = 0; i < list.length; i++) {
|
|
5603
5517
|
if (list[i] === value) {
|
|
@@ -5606,7 +5520,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5606
5520
|
}
|
|
5607
5521
|
}
|
|
5608
5522
|
}
|
|
5609
|
-
|
|
5610
5523
|
return index;
|
|
5611
5524
|
}
|
|
5612
5525
|
}, {
|
|
@@ -5614,8 +5527,7 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5614
5527
|
value: function contains(value, list) {
|
|
5615
5528
|
if (value != null && list && list.length) {
|
|
5616
5529
|
var _iterator3 = ObjectUtils_createForOfIteratorHelper(list),
|
|
5617
|
-
|
|
5618
|
-
|
|
5530
|
+
_step3;
|
|
5619
5531
|
try {
|
|
5620
5532
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
5621
5533
|
var val = _step3.value;
|
|
@@ -5627,7 +5539,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5627
5539
|
_iterator3.f();
|
|
5628
5540
|
}
|
|
5629
5541
|
}
|
|
5630
|
-
|
|
5631
5542
|
return false;
|
|
5632
5543
|
}
|
|
5633
5544
|
}, {
|
|
@@ -5635,17 +5546,14 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5635
5546
|
value: function insertIntoOrderedArray(item, index, arr, sourceArr) {
|
|
5636
5547
|
if (arr.length > 0) {
|
|
5637
5548
|
var injected = false;
|
|
5638
|
-
|
|
5639
5549
|
for (var i = 0; i < arr.length; i++) {
|
|
5640
5550
|
var currentItemIndex = this.findIndexInList(arr[i], sourceArr);
|
|
5641
|
-
|
|
5642
5551
|
if (currentItemIndex > index) {
|
|
5643
5552
|
arr.splice(i, 0, item);
|
|
5644
5553
|
injected = true;
|
|
5645
5554
|
break;
|
|
5646
5555
|
}
|
|
5647
5556
|
}
|
|
5648
|
-
|
|
5649
5557
|
if (!injected) {
|
|
5650
5558
|
arr.push(item);
|
|
5651
5559
|
}
|
|
@@ -5659,72 +5567,57 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5659
5567
|
if (str && str.search(/[\xC0-\xFF]/g) > -1) {
|
|
5660
5568
|
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");
|
|
5661
5569
|
}
|
|
5662
|
-
|
|
5663
5570
|
return str;
|
|
5664
5571
|
}
|
|
5665
5572
|
}, {
|
|
5666
5573
|
key: "getVNodeProp",
|
|
5667
5574
|
value: function getVNodeProp(vnode, prop) {
|
|
5668
5575
|
var props = vnode._props;
|
|
5669
|
-
|
|
5670
5576
|
if (props) {
|
|
5671
5577
|
var kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
5672
5578
|
var propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
|
|
5673
5579
|
return props[propName];
|
|
5674
5580
|
}
|
|
5675
|
-
|
|
5676
5581
|
return null;
|
|
5677
5582
|
}
|
|
5678
5583
|
}]);
|
|
5679
|
-
|
|
5680
5584
|
return ObjectUtils;
|
|
5681
5585
|
}();
|
|
5682
5586
|
|
|
5683
|
-
|
|
5684
5587
|
// CONCATENATED MODULE: ./src/components/ripple/Ripple.js
|
|
5685
5588
|
|
|
5686
|
-
|
|
5687
5589
|
function bindEvents(el) {
|
|
5688
5590
|
el.addEventListener('mousedown', onMouseDown);
|
|
5689
5591
|
}
|
|
5690
|
-
|
|
5691
5592
|
function unbindEvents(el) {
|
|
5692
5593
|
el.removeEventListener('mousedown', onMouseDown);
|
|
5693
5594
|
}
|
|
5694
|
-
|
|
5695
5595
|
function create(el) {
|
|
5696
5596
|
var ink = document.createElement('span');
|
|
5697
5597
|
ink.className = 'p-ink';
|
|
5698
5598
|
el.appendChild(ink);
|
|
5699
5599
|
ink.addEventListener('animationend', onAnimationEnd);
|
|
5700
5600
|
}
|
|
5701
|
-
|
|
5702
5601
|
function remove(el) {
|
|
5703
5602
|
var ink = getInk(el);
|
|
5704
|
-
|
|
5705
5603
|
if (ink) {
|
|
5706
5604
|
unbindEvents(el);
|
|
5707
5605
|
ink.removeEventListener('animationend', onAnimationEnd);
|
|
5708
5606
|
ink.remove();
|
|
5709
5607
|
}
|
|
5710
5608
|
}
|
|
5711
|
-
|
|
5712
5609
|
function onMouseDown(event) {
|
|
5713
5610
|
var target = event.currentTarget;
|
|
5714
5611
|
var ink = getInk(target);
|
|
5715
|
-
|
|
5716
5612
|
if (!ink || getComputedStyle(ink, null).display === 'none') {
|
|
5717
5613
|
return;
|
|
5718
5614
|
}
|
|
5719
|
-
|
|
5720
5615
|
DomHandler_DomHandler.removeClass(ink, 'p-ink-active');
|
|
5721
|
-
|
|
5722
5616
|
if (!DomHandler_DomHandler.getHeight(ink) && !DomHandler_DomHandler.getWidth(ink)) {
|
|
5723
5617
|
var d = Math.max(DomHandler_DomHandler.getOuterWidth(target), DomHandler_DomHandler.getOuterHeight(target));
|
|
5724
5618
|
ink.style.height = d + 'px';
|
|
5725
5619
|
ink.style.width = d + 'px';
|
|
5726
5620
|
}
|
|
5727
|
-
|
|
5728
5621
|
var offset = DomHandler_DomHandler.getOffset(target);
|
|
5729
5622
|
var x = event.pageX - offset.left + document.body.scrollTop - DomHandler_DomHandler.getWidth(ink) / 2;
|
|
5730
5623
|
var y = event.pageY - offset.top + document.body.scrollLeft - DomHandler_DomHandler.getHeight(ink) / 2;
|
|
@@ -5732,21 +5625,17 @@ function onMouseDown(event) {
|
|
|
5732
5625
|
ink.style.left = x + 'px';
|
|
5733
5626
|
DomHandler_DomHandler.addClass(ink, 'p-ink-active');
|
|
5734
5627
|
}
|
|
5735
|
-
|
|
5736
5628
|
function onAnimationEnd(event) {
|
|
5737
5629
|
DomHandler_DomHandler.removeClass(event.currentTarget, 'p-ink-active');
|
|
5738
5630
|
}
|
|
5739
|
-
|
|
5740
5631
|
function getInk(el) {
|
|
5741
5632
|
for (var i = 0; i < el.children.length; i++) {
|
|
5742
5633
|
if (typeof el.children[i].className === 'string' && el.children[i].className.indexOf('p-ink') !== -1) {
|
|
5743
5634
|
return el.children[i];
|
|
5744
5635
|
}
|
|
5745
5636
|
}
|
|
5746
|
-
|
|
5747
5637
|
return null;
|
|
5748
5638
|
}
|
|
5749
|
-
|
|
5750
5639
|
var Ripple = {
|
|
5751
5640
|
inserted: function inserted(el, binding, vnode) {
|
|
5752
5641
|
if (vnode.context.$primevue && vnode.context.$primevue.config.ripple) {
|
|
@@ -5768,17 +5657,13 @@ var Ripple = {
|
|
|
5768
5657
|
|
|
5769
5658
|
|
|
5770
5659
|
|
|
5771
|
-
|
|
5772
5660
|
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; } } }; }
|
|
5773
|
-
|
|
5774
5661
|
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); }
|
|
5775
|
-
|
|
5776
5662
|
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; }
|
|
5777
5663
|
|
|
5778
5664
|
|
|
5779
5665
|
|
|
5780
5666
|
|
|
5781
|
-
|
|
5782
5667
|
/* harmony default export */ var Dropdownvue_type_script_lang_js_ = ({
|
|
5783
5668
|
props: {
|
|
5784
5669
|
value: null,
|
|
@@ -5834,7 +5719,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5834
5719
|
if (this.overlayVisible && this.isModelValueChanged) {
|
|
5835
5720
|
this.scrollValueInView();
|
|
5836
5721
|
}
|
|
5837
|
-
|
|
5838
5722
|
this.isModelValueChanged = false;
|
|
5839
5723
|
this.onFilterUpdated();
|
|
5840
5724
|
},
|
|
@@ -5842,7 +5726,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5842
5726
|
this.restoreAppend();
|
|
5843
5727
|
this.unbindOutsideClickListener();
|
|
5844
5728
|
this.unbindResizeListener();
|
|
5845
|
-
|
|
5846
5729
|
if (this.scrollHandler) {
|
|
5847
5730
|
this.scrollHandler.destroy();
|
|
5848
5731
|
this.scrollHandler = null;
|
|
@@ -5863,15 +5746,12 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5863
5746
|
},
|
|
5864
5747
|
getSelectedOption: function getSelectedOption() {
|
|
5865
5748
|
var selectedOption;
|
|
5866
|
-
|
|
5867
5749
|
if (this.value != null && this.options) {
|
|
5868
5750
|
var _iterator = Dropdownvue_type_script_lang_js_createForOfIteratorHelper(this.options),
|
|
5869
|
-
|
|
5870
|
-
|
|
5751
|
+
_step;
|
|
5871
5752
|
try {
|
|
5872
5753
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5873
5754
|
var option = _step.value;
|
|
5874
|
-
|
|
5875
5755
|
if (ObjectUtils_ObjectUtils.equals(this.value, this.getOptionValue(option), this.equalityKey)) {
|
|
5876
5756
|
selectedOption = option;
|
|
5877
5757
|
break;
|
|
@@ -5883,7 +5763,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5883
5763
|
_iterator.f();
|
|
5884
5764
|
}
|
|
5885
5765
|
}
|
|
5886
|
-
|
|
5887
5766
|
return selectedOption;
|
|
5888
5767
|
},
|
|
5889
5768
|
isSelected: function isSelected(option) {
|
|
@@ -5891,7 +5770,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5891
5770
|
},
|
|
5892
5771
|
getSelectedOptionIndex: function getSelectedOptionIndex() {
|
|
5893
5772
|
var selectedOptionIndex = -1;
|
|
5894
|
-
|
|
5895
5773
|
if (this.value != null && this.visibleOptions) {
|
|
5896
5774
|
for (var i = 0; i < this.visibleOptions.length; i++) {
|
|
5897
5775
|
if (ObjectUtils_ObjectUtils.equals(this.value, this.getOptionValue(this.visibleOptions[i]), this.equalityKey)) {
|
|
@@ -5900,7 +5778,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5900
5778
|
}
|
|
5901
5779
|
}
|
|
5902
5780
|
}
|
|
5903
|
-
|
|
5904
5781
|
return selectedOptionIndex;
|
|
5905
5782
|
},
|
|
5906
5783
|
show: function show() {
|
|
@@ -5923,36 +5800,33 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5923
5800
|
case 40:
|
|
5924
5801
|
this.onDownKey(event);
|
|
5925
5802
|
break;
|
|
5926
|
-
//up
|
|
5927
5803
|
|
|
5804
|
+
//up
|
|
5928
5805
|
case 38:
|
|
5929
5806
|
this.onUpKey(event);
|
|
5930
5807
|
break;
|
|
5931
|
-
//space
|
|
5932
5808
|
|
|
5809
|
+
//space
|
|
5933
5810
|
case 32:
|
|
5934
5811
|
if (!this.overlayVisible) {
|
|
5935
5812
|
this.show();
|
|
5936
5813
|
event.preventDefault();
|
|
5937
5814
|
}
|
|
5938
|
-
|
|
5939
5815
|
break;
|
|
5940
|
-
//enter and escape
|
|
5941
5816
|
|
|
5817
|
+
//enter and escape
|
|
5942
5818
|
case 13:
|
|
5943
5819
|
case 27:
|
|
5944
5820
|
if (this.overlayVisible) {
|
|
5945
5821
|
this.hide();
|
|
5946
5822
|
event.preventDefault();
|
|
5947
5823
|
}
|
|
5948
|
-
|
|
5949
5824
|
break;
|
|
5950
|
-
//tab
|
|
5951
5825
|
|
|
5826
|
+
//tab
|
|
5952
5827
|
case 9:
|
|
5953
5828
|
this.hide();
|
|
5954
5829
|
break;
|
|
5955
|
-
|
|
5956
5830
|
default:
|
|
5957
5831
|
this.search(event);
|
|
5958
5832
|
break;
|
|
@@ -5964,19 +5838,18 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5964
5838
|
case 40:
|
|
5965
5839
|
this.onDownKey(event);
|
|
5966
5840
|
break;
|
|
5967
|
-
//up
|
|
5968
5841
|
|
|
5842
|
+
//up
|
|
5969
5843
|
case 38:
|
|
5970
5844
|
this.onUpKey(event);
|
|
5971
5845
|
break;
|
|
5972
|
-
//enter and escape
|
|
5973
5846
|
|
|
5847
|
+
//enter and escape
|
|
5974
5848
|
case 13:
|
|
5975
5849
|
case 27:
|
|
5976
5850
|
this.overlayVisible = false;
|
|
5977
5851
|
event.preventDefault();
|
|
5978
5852
|
break;
|
|
5979
|
-
|
|
5980
5853
|
default:
|
|
5981
5854
|
break;
|
|
5982
5855
|
}
|
|
@@ -5987,43 +5860,35 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5987
5860
|
this.show();
|
|
5988
5861
|
} else {
|
|
5989
5862
|
var nextOption = this.findNextOption(this.getSelectedOptionIndex());
|
|
5990
|
-
|
|
5991
5863
|
if (nextOption) {
|
|
5992
5864
|
this.updateModel(event, this.getOptionValue(nextOption));
|
|
5993
5865
|
}
|
|
5994
5866
|
}
|
|
5995
5867
|
}
|
|
5996
|
-
|
|
5997
5868
|
event.preventDefault();
|
|
5998
5869
|
},
|
|
5999
5870
|
onUpKey: function onUpKey(event) {
|
|
6000
5871
|
if (this.visibleOptions) {
|
|
6001
5872
|
var prevOption = this.findPrevOption(this.getSelectedOptionIndex());
|
|
6002
|
-
|
|
6003
5873
|
if (prevOption) {
|
|
6004
5874
|
this.updateModel(event, this.getOptionValue(prevOption));
|
|
6005
5875
|
}
|
|
6006
5876
|
}
|
|
6007
|
-
|
|
6008
5877
|
event.preventDefault();
|
|
6009
5878
|
},
|
|
6010
5879
|
findNextOption: function findNextOption(index) {
|
|
6011
5880
|
var i = index + 1;
|
|
6012
|
-
|
|
6013
5881
|
if (i === this.visibleOptions.length) {
|
|
6014
5882
|
return null;
|
|
6015
5883
|
}
|
|
6016
|
-
|
|
6017
5884
|
var option = this.visibleOptions[i];
|
|
6018
5885
|
if (this.isOptionDisabled(option)) return this.findNextOption(i);else return option;
|
|
6019
5886
|
},
|
|
6020
5887
|
findPrevOption: function findPrevOption(index) {
|
|
6021
5888
|
var i = index - 1;
|
|
6022
|
-
|
|
6023
5889
|
if (i < 0) {
|
|
6024
5890
|
return null;
|
|
6025
5891
|
}
|
|
6026
|
-
|
|
6027
5892
|
var option = this.visibleOptions[i];
|
|
6028
5893
|
if (this.isOptionDisabled(option)) return this.findPrevOption(i);else return option;
|
|
6029
5894
|
},
|
|
@@ -6034,7 +5899,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6034
5899
|
if (this.disabled) {
|
|
6035
5900
|
return;
|
|
6036
5901
|
}
|
|
6037
|
-
|
|
6038
5902
|
if (DomHandler_DomHandler.hasClass(event.target, 'p-dropdown-clear-icon') || event.target.tagName === 'INPUT') {
|
|
6039
5903
|
return;
|
|
6040
5904
|
} else if (!this.$refs.overlay || !this.$refs.overlay.contains(event.target)) {
|
|
@@ -6044,7 +5908,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6044
5908
|
},
|
|
6045
5909
|
onOptionSelect: function onOptionSelect(event, option) {
|
|
6046
5910
|
var _this = this;
|
|
6047
|
-
|
|
6048
5911
|
var value = this.getOptionValue(option);
|
|
6049
5912
|
this.updateModel(event, value);
|
|
6050
5913
|
this.$refs.focusInput.focus();
|
|
@@ -6062,11 +5925,9 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6062
5925
|
this.bindOutsideClickListener();
|
|
6063
5926
|
this.bindScrollListener();
|
|
6064
5927
|
this.bindResizeListener();
|
|
6065
|
-
|
|
6066
5928
|
if (this.filter) {
|
|
6067
5929
|
this.$refs.filterInput.focus();
|
|
6068
5930
|
}
|
|
6069
|
-
|
|
6070
5931
|
this.$emit('show');
|
|
6071
5932
|
},
|
|
6072
5933
|
onOverlayLeave: function onOverlayLeave() {
|
|
@@ -6092,14 +5953,12 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6092
5953
|
},
|
|
6093
5954
|
bindOutsideClickListener: function bindOutsideClickListener() {
|
|
6094
5955
|
var _this2 = this;
|
|
6095
|
-
|
|
6096
5956
|
if (!this.outsideClickListener) {
|
|
6097
5957
|
this.outsideClickListener = function (event) {
|
|
6098
5958
|
if (_this2.overlayVisible && _this2.$refs.overlay && !_this2.$refs.container.contains(event.target) && !_this2.$refs.overlay.contains(event.target)) {
|
|
6099
5959
|
_this2.hide();
|
|
6100
5960
|
}
|
|
6101
5961
|
};
|
|
6102
|
-
|
|
6103
5962
|
document.addEventListener('click', this.outsideClickListener);
|
|
6104
5963
|
}
|
|
6105
5964
|
},
|
|
@@ -6111,7 +5970,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6111
5970
|
},
|
|
6112
5971
|
bindScrollListener: function bindScrollListener() {
|
|
6113
5972
|
var _this3 = this;
|
|
6114
|
-
|
|
6115
5973
|
if (!this.scrollHandler) {
|
|
6116
5974
|
this.scrollHandler = new ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler(this.$el, function () {
|
|
6117
5975
|
if (_this3.overlayVisible) {
|
|
@@ -6119,7 +5977,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6119
5977
|
}
|
|
6120
5978
|
});
|
|
6121
5979
|
}
|
|
6122
|
-
|
|
6123
5980
|
this.scrollHandler.bindScrollListener();
|
|
6124
5981
|
},
|
|
6125
5982
|
unbindScrollListener: function unbindScrollListener() {
|
|
@@ -6129,14 +5986,12 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6129
5986
|
},
|
|
6130
5987
|
bindResizeListener: function bindResizeListener() {
|
|
6131
5988
|
var _this4 = this;
|
|
6132
|
-
|
|
6133
5989
|
if (!this.resizeListener) {
|
|
6134
5990
|
this.resizeListener = function () {
|
|
6135
5991
|
if (_this4.overlayVisible && !DomHandler_DomHandler.isTouchDevice()) {
|
|
6136
5992
|
_this4.hide();
|
|
6137
5993
|
}
|
|
6138
5994
|
};
|
|
6139
|
-
|
|
6140
5995
|
window.addEventListener('resize', this.resizeListener);
|
|
6141
5996
|
}
|
|
6142
5997
|
},
|
|
@@ -6148,53 +6003,43 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6148
6003
|
},
|
|
6149
6004
|
search: function search(event) {
|
|
6150
6005
|
var _this5 = this;
|
|
6151
|
-
|
|
6152
6006
|
if (!this.visibleOptions) {
|
|
6153
6007
|
return;
|
|
6154
6008
|
}
|
|
6155
|
-
|
|
6156
6009
|
if (this.searchTimeout) {
|
|
6157
6010
|
clearTimeout(this.searchTimeout);
|
|
6158
6011
|
}
|
|
6159
|
-
|
|
6160
6012
|
var char = event.key;
|
|
6161
6013
|
this.previousSearchChar = this.currentSearchChar;
|
|
6162
6014
|
this.currentSearchChar = char;
|
|
6163
6015
|
if (this.previousSearchChar === this.currentSearchChar) this.searchValue = this.currentSearchChar;else this.searchValue = this.searchValue ? this.searchValue + char : char;
|
|
6164
6016
|
var searchIndex = this.getSelectedOptionIndex();
|
|
6165
6017
|
var newOption = this.searchOption(++searchIndex);
|
|
6166
|
-
|
|
6167
6018
|
if (newOption) {
|
|
6168
6019
|
this.updateModel(event, this.getOptionValue(newOption));
|
|
6169
6020
|
}
|
|
6170
|
-
|
|
6171
6021
|
this.searchTimeout = setTimeout(function () {
|
|
6172
6022
|
_this5.searchValue = null;
|
|
6173
6023
|
}, 250);
|
|
6174
6024
|
},
|
|
6175
6025
|
searchOption: function searchOption(index) {
|
|
6176
6026
|
var option;
|
|
6177
|
-
|
|
6178
6027
|
if (this.searchValue) {
|
|
6179
6028
|
option = this.searchOptionInRange(index, this.visibleOptions.length);
|
|
6180
|
-
|
|
6181
6029
|
if (!option) {
|
|
6182
6030
|
option = this.searchOptionInRange(0, index);
|
|
6183
6031
|
}
|
|
6184
6032
|
}
|
|
6185
|
-
|
|
6186
6033
|
return option;
|
|
6187
6034
|
},
|
|
6188
6035
|
searchOptionInRange: function searchOptionInRange(start, end) {
|
|
6189
6036
|
for (var i = start; i < end; i++) {
|
|
6190
6037
|
var opt = this.visibleOptions[i];
|
|
6191
6038
|
var label = this.getOptionLabel(opt).toLocaleLowerCase(this.filterLocale);
|
|
6192
|
-
|
|
6193
6039
|
if (label.startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))) {
|
|
6194
6040
|
return opt;
|
|
6195
6041
|
}
|
|
6196
6042
|
}
|
|
6197
|
-
|
|
6198
6043
|
return null;
|
|
6199
6044
|
},
|
|
6200
6045
|
appendContainer: function appendContainer() {
|
|
@@ -6222,7 +6067,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6222
6067
|
scrollValueInView: function scrollValueInView() {
|
|
6223
6068
|
if (this.$refs.overlay) {
|
|
6224
6069
|
var selectedItem = DomHandler_DomHandler.findSingle(this.$refs.overlay, 'li.p-highlight');
|
|
6225
|
-
|
|
6226
6070
|
if (selectedItem) {
|
|
6227
6071
|
selectedItem.scrollIntoView({
|
|
6228
6072
|
block: 'nearest',
|
|
@@ -6235,7 +6079,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6235
6079
|
computed: {
|
|
6236
6080
|
visibleOptions: function visibleOptions() {
|
|
6237
6081
|
var _this6 = this;
|
|
6238
|
-
|
|
6239
6082
|
if (this.filterValue && this.filterValue.trim().length > 0) return this.options.filter(function (option) {
|
|
6240
6083
|
return _this6.getOptionLabel(option).toLocaleLowerCase(_this6.filterLocale).indexOf(_this6.filterValue.toLocaleLowerCase(_this6.filterLocale)) > -1;
|
|
6241
6084
|
});else return this.options;
|