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
|
@@ -4652,11 +4652,10 @@ if (typeof window !== 'undefined') {
|
|
|
4652
4652
|
// Indicate to webpack that this file can be concatenated
|
|
4653
4653
|
/* harmony default export */ var setPublicPath = (null);
|
|
4654
4654
|
|
|
4655
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4655
|
+
// 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/paginator/RowsPerPageDropdown.vue?vue&type=template&id=d1b2fa7a&
|
|
4656
4656
|
var render = function render() {
|
|
4657
4657
|
var _vm = this,
|
|
4658
|
-
|
|
4659
|
-
|
|
4658
|
+
_c = _vm._self._c;
|
|
4660
4659
|
return _c('RPPDropdown', {
|
|
4661
4660
|
attrs: {
|
|
4662
4661
|
"value": _vm.rows,
|
|
@@ -4672,7 +4671,6 @@ var render = function render() {
|
|
|
4672
4671
|
}
|
|
4673
4672
|
});
|
|
4674
4673
|
};
|
|
4675
|
-
|
|
4676
4674
|
var staticRenderFns = [];
|
|
4677
4675
|
|
|
4678
4676
|
// CONCATENATED MODULE: ./src/components/paginator/RowsPerPageDropdown.vue?vue&type=template&id=d1b2fa7a&
|
|
@@ -4680,11 +4678,10 @@ var staticRenderFns = [];
|
|
|
4680
4678
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js
|
|
4681
4679
|
var es6_number_constructor = __webpack_require__("c5f6");
|
|
4682
4680
|
|
|
4683
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4681
|
+
// 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&
|
|
4684
4682
|
var Dropdownvue_type_template_id_0ebc4c6d_render = function render() {
|
|
4685
4683
|
var _vm = this,
|
|
4686
|
-
|
|
4687
|
-
|
|
4684
|
+
_c = _vm._self._c;
|
|
4688
4685
|
return _c('div', {
|
|
4689
4686
|
ref: "container",
|
|
4690
4687
|
class: _vm.containerClass,
|
|
@@ -4828,7 +4825,6 @@ var Dropdownvue_type_template_id_0ebc4c6d_render = function render() {
|
|
|
4828
4825
|
staticClass: "p-dropdown-empty-message"
|
|
4829
4826
|
}, [_vm._v(_vm._s(_vm.emptyFilterMessage))]) : _vm._e()], 2)])]) : _vm._e()])], 1);
|
|
4830
4827
|
};
|
|
4831
|
-
|
|
4832
4828
|
var Dropdownvue_type_template_id_0ebc4c6d_staticRenderFns = [];
|
|
4833
4829
|
|
|
4834
4830
|
// CONCATENATED MODULE: ./src/components/dropdown/Dropdown.vue?vue&type=template&id=0ebc4c6d&
|
|
@@ -4869,26 +4865,21 @@ var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property
|
|
|
4869
4865
|
|
|
4870
4866
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
|
|
4871
4867
|
|
|
4872
|
-
|
|
4873
4868
|
function _defineProperties(target, props) {
|
|
4874
4869
|
for (var i = 0; i < props.length; i++) {
|
|
4875
4870
|
var descriptor = props[i];
|
|
4876
4871
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
4877
4872
|
descriptor.configurable = true;
|
|
4878
4873
|
if ("value" in descriptor) descriptor.writable = true;
|
|
4879
|
-
|
|
4880
4874
|
define_property_default()(target, descriptor.key, descriptor);
|
|
4881
4875
|
}
|
|
4882
4876
|
}
|
|
4883
|
-
|
|
4884
4877
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
4885
4878
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
4886
4879
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
4887
|
-
|
|
4888
4880
|
define_property_default()(Constructor, "prototype", {
|
|
4889
4881
|
writable: false
|
|
4890
4882
|
});
|
|
4891
|
-
|
|
4892
4883
|
return Constructor;
|
|
4893
4884
|
}
|
|
4894
4885
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.find.js
|
|
@@ -4916,18 +4907,13 @@ var es6_regexp_split = __webpack_require__("28a5");
|
|
|
4916
4907
|
|
|
4917
4908
|
|
|
4918
4909
|
|
|
4919
|
-
|
|
4920
4910
|
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; } } }; }
|
|
4921
|
-
|
|
4922
4911
|
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); }
|
|
4923
|
-
|
|
4924
4912
|
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; }
|
|
4925
|
-
|
|
4926
4913
|
var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
4927
4914
|
function DomHandler() {
|
|
4928
4915
|
_classCallCheck(this, DomHandler);
|
|
4929
4916
|
}
|
|
4930
|
-
|
|
4931
4917
|
_createClass(DomHandler, null, [{
|
|
4932
4918
|
key: "innerWidth",
|
|
4933
4919
|
value: function innerWidth(el) {
|
|
@@ -4961,12 +4947,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4961
4947
|
value: function getOuterWidth(el, margin) {
|
|
4962
4948
|
if (el) {
|
|
4963
4949
|
var width = el.offsetWidth;
|
|
4964
|
-
|
|
4965
4950
|
if (margin) {
|
|
4966
4951
|
var style = getComputedStyle(el);
|
|
4967
4952
|
width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
4968
4953
|
}
|
|
4969
|
-
|
|
4970
4954
|
return width;
|
|
4971
4955
|
} else {
|
|
4972
4956
|
return 0;
|
|
@@ -4977,12 +4961,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4977
4961
|
value: function getOuterHeight(el, margin) {
|
|
4978
4962
|
if (el) {
|
|
4979
4963
|
var height = el.offsetHeight;
|
|
4980
|
-
|
|
4981
4964
|
if (margin) {
|
|
4982
4965
|
var style = getComputedStyle(el);
|
|
4983
4966
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
4984
4967
|
}
|
|
4985
|
-
|
|
4986
4968
|
return height;
|
|
4987
4969
|
} else {
|
|
4988
4970
|
return 0;
|
|
@@ -4993,12 +4975,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4993
4975
|
value: function getClientHeight(el, margin) {
|
|
4994
4976
|
if (el) {
|
|
4995
4977
|
var height = el.clientHeight;
|
|
4996
|
-
|
|
4997
4978
|
if (margin) {
|
|
4998
4979
|
var style = getComputedStyle(el);
|
|
4999
4980
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
5000
4981
|
}
|
|
5001
|
-
|
|
5002
4982
|
return height;
|
|
5003
4983
|
} else {
|
|
5004
4984
|
return 0;
|
|
@@ -5008,11 +4988,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5008
4988
|
key: "getViewport",
|
|
5009
4989
|
value: function getViewport() {
|
|
5010
4990
|
var win = window,
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
4991
|
+
d = document,
|
|
4992
|
+
e = d.documentElement,
|
|
4993
|
+
g = d.getElementsByTagName('body')[0],
|
|
4994
|
+
w = win.innerWidth || e.clientWidth || g.clientWidth,
|
|
4995
|
+
h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
5016
4996
|
return {
|
|
5017
4997
|
width: w,
|
|
5018
4998
|
height: h
|
|
@@ -5043,12 +5023,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5043
5023
|
value: function index(element) {
|
|
5044
5024
|
var children = element.parentNode.childNodes;
|
|
5045
5025
|
var num = 0;
|
|
5046
|
-
|
|
5047
5026
|
for (var i = 0; i < children.length; i++) {
|
|
5048
5027
|
if (children[i] === element) return num;
|
|
5049
5028
|
if (children[i].nodeType === 1) num++;
|
|
5050
5029
|
}
|
|
5051
|
-
|
|
5052
5030
|
return -1;
|
|
5053
5031
|
}
|
|
5054
5032
|
}, {
|
|
@@ -5056,13 +5034,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5056
5034
|
value: function addMultipleClasses(element, className) {
|
|
5057
5035
|
if (element.classList) {
|
|
5058
5036
|
var styles = className.split(' ');
|
|
5059
|
-
|
|
5060
5037
|
for (var i = 0; i < styles.length; i++) {
|
|
5061
5038
|
element.classList.add(styles[i]);
|
|
5062
5039
|
}
|
|
5063
5040
|
} else {
|
|
5064
5041
|
var _styles = className.split(' ');
|
|
5065
|
-
|
|
5066
5042
|
for (var _i = 0; _i < _styles.length; _i++) {
|
|
5067
5043
|
element.className += ' ' + _styles[_i];
|
|
5068
5044
|
}
|
|
@@ -5084,7 +5060,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5084
5060
|
if (element) {
|
|
5085
5061
|
if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
5086
5062
|
}
|
|
5087
|
-
|
|
5088
5063
|
return false;
|
|
5089
5064
|
}
|
|
5090
5065
|
}, {
|
|
@@ -5129,11 +5104,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5129
5104
|
var windowScrollLeft = this.getWindowScrollLeft();
|
|
5130
5105
|
var viewport = this.getViewport();
|
|
5131
5106
|
var top, left;
|
|
5132
|
-
|
|
5133
5107
|
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
5134
5108
|
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
5135
5109
|
element.style.transformOrigin = 'bottom';
|
|
5136
|
-
|
|
5137
5110
|
if (top < 0) {
|
|
5138
5111
|
top = windowScrollTop;
|
|
5139
5112
|
}
|
|
@@ -5141,7 +5114,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5141
5114
|
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
5142
5115
|
element.style.transformOrigin = 'top';
|
|
5143
5116
|
}
|
|
5144
|
-
|
|
5145
5117
|
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
|
|
5146
5118
|
element.style.top = top + 'px';
|
|
5147
5119
|
element.style.left = left + 'px';
|
|
@@ -5157,11 +5129,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5157
5129
|
var targetOffset = target.getBoundingClientRect();
|
|
5158
5130
|
var viewport = this.getViewport();
|
|
5159
5131
|
var top, left;
|
|
5160
|
-
|
|
5161
5132
|
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
5162
5133
|
top = -1 * elementDimensions.height;
|
|
5163
5134
|
element.style.transformOrigin = 'bottom';
|
|
5164
|
-
|
|
5165
5135
|
if (targetOffset.top + top < 0) {
|
|
5166
5136
|
top = -1 * targetOffset.top;
|
|
5167
5137
|
}
|
|
@@ -5169,7 +5139,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5169
5139
|
top = targetHeight;
|
|
5170
5140
|
element.style.transformOrigin = 'top';
|
|
5171
5141
|
}
|
|
5172
|
-
|
|
5173
5142
|
if (elementDimensions.width > viewport.width) {
|
|
5174
5143
|
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
5175
5144
|
left = targetOffset.left * -1;
|
|
@@ -5180,7 +5149,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5180
5149
|
// element fits on screen (align with target)
|
|
5181
5150
|
left = 0;
|
|
5182
5151
|
}
|
|
5183
|
-
|
|
5184
5152
|
element.style.top = top + 'px';
|
|
5185
5153
|
element.style.left = left + 'px';
|
|
5186
5154
|
}
|
|
@@ -5194,35 +5162,27 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5194
5162
|
key: "getScrollableParents",
|
|
5195
5163
|
value: function getScrollableParents(element) {
|
|
5196
5164
|
var scrollableParents = [];
|
|
5197
|
-
|
|
5198
5165
|
if (element) {
|
|
5199
5166
|
var parents = this.getParents(element);
|
|
5200
5167
|
var overflowRegex = /(auto|scroll)/;
|
|
5201
|
-
|
|
5202
5168
|
var overflowCheck = function overflowCheck(node) {
|
|
5203
5169
|
var styleDeclaration = window['getComputedStyle'](node, null);
|
|
5204
5170
|
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
5205
5171
|
};
|
|
5206
|
-
|
|
5207
5172
|
var _iterator = _createForOfIteratorHelper(parents),
|
|
5208
|
-
|
|
5209
|
-
|
|
5173
|
+
_step;
|
|
5210
5174
|
try {
|
|
5211
5175
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5212
5176
|
var parent = _step.value;
|
|
5213
5177
|
var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
5214
|
-
|
|
5215
5178
|
if (scrollSelectors) {
|
|
5216
5179
|
var selectors = scrollSelectors.split(',');
|
|
5217
|
-
|
|
5218
5180
|
var _iterator2 = _createForOfIteratorHelper(selectors),
|
|
5219
|
-
|
|
5220
|
-
|
|
5181
|
+
_step2;
|
|
5221
5182
|
try {
|
|
5222
5183
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
5223
5184
|
var selector = _step2.value;
|
|
5224
5185
|
var el = this.findSingle(parent, selector);
|
|
5225
|
-
|
|
5226
5186
|
if (el && overflowCheck(el)) {
|
|
5227
5187
|
scrollableParents.push(el);
|
|
5228
5188
|
}
|
|
@@ -5240,7 +5200,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5240
5200
|
_iterator.f();
|
|
5241
5201
|
}
|
|
5242
5202
|
}
|
|
5243
|
-
|
|
5244
5203
|
return scrollableParents;
|
|
5245
5204
|
}
|
|
5246
5205
|
}, {
|
|
@@ -5281,34 +5240,29 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5281
5240
|
element.style.opacity = 0;
|
|
5282
5241
|
var last = +new Date();
|
|
5283
5242
|
var opacity = 0;
|
|
5284
|
-
|
|
5285
5243
|
var tick = function tick() {
|
|
5286
5244
|
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
5287
5245
|
element.style.opacity = opacity;
|
|
5288
5246
|
last = +new Date();
|
|
5289
|
-
|
|
5290
5247
|
if (+opacity < 1) {
|
|
5291
5248
|
window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
|
|
5292
5249
|
}
|
|
5293
5250
|
};
|
|
5294
|
-
|
|
5295
5251
|
tick();
|
|
5296
5252
|
}
|
|
5297
5253
|
}, {
|
|
5298
5254
|
key: "fadeOut",
|
|
5299
5255
|
value: function fadeOut(element, ms) {
|
|
5300
5256
|
var opacity = 1,
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5257
|
+
interval = 50,
|
|
5258
|
+
duration = ms,
|
|
5259
|
+
gap = interval / duration;
|
|
5304
5260
|
var fading = setInterval(function () {
|
|
5305
5261
|
opacity -= gap;
|
|
5306
|
-
|
|
5307
5262
|
if (opacity <= 0) {
|
|
5308
5263
|
opacity = 0;
|
|
5309
5264
|
clearInterval(fading);
|
|
5310
5265
|
}
|
|
5311
|
-
|
|
5312
5266
|
element.style.opacity = opacity;
|
|
5313
5267
|
}, interval);
|
|
5314
5268
|
}
|
|
@@ -5335,7 +5289,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5335
5289
|
var scroll = container.scrollTop;
|
|
5336
5290
|
var elementHeight = container.clientHeight;
|
|
5337
5291
|
var itemHeight = this.getOuterHeight(item);
|
|
5338
|
-
|
|
5339
5292
|
if (offset < 0) {
|
|
5340
5293
|
container.scrollTop = scroll + offset;
|
|
5341
5294
|
} else if (offset + itemHeight > elementHeight) {
|
|
@@ -5354,7 +5307,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5354
5307
|
} else if (document['selection'] && document['selection'].empty) {
|
|
5355
5308
|
try {
|
|
5356
5309
|
document['selection'].empty();
|
|
5357
|
-
} catch (error) {
|
|
5310
|
+
} catch (error) {
|
|
5311
|
+
//ignore IE bug
|
|
5358
5312
|
}
|
|
5359
5313
|
}
|
|
5360
5314
|
}
|
|
@@ -5376,19 +5330,16 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5376
5330
|
if (!this.browser) {
|
|
5377
5331
|
var matched = this.resolveUserAgent();
|
|
5378
5332
|
this.browser = {};
|
|
5379
|
-
|
|
5380
5333
|
if (matched.browser) {
|
|
5381
5334
|
this.browser[matched.browser] = true;
|
|
5382
5335
|
this.browser['version'] = matched.version;
|
|
5383
5336
|
}
|
|
5384
|
-
|
|
5385
5337
|
if (this.browser['chrome']) {
|
|
5386
5338
|
this.browser['webkit'] = true;
|
|
5387
5339
|
} else if (this.browser['webkit']) {
|
|
5388
5340
|
this.browser['safari'] = true;
|
|
5389
5341
|
}
|
|
5390
5342
|
}
|
|
5391
|
-
|
|
5392
5343
|
return this.browser;
|
|
5393
5344
|
}
|
|
5394
5345
|
}, {
|
|
@@ -5416,10 +5367,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5416
5367
|
value: function getFocusableElements(element) {
|
|
5417
5368
|
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])");
|
|
5418
5369
|
var visibleFocusableElements = [];
|
|
5419
|
-
|
|
5420
5370
|
var _iterator3 = _createForOfIteratorHelper(focusableElements),
|
|
5421
|
-
|
|
5422
|
-
|
|
5371
|
+
_step3;
|
|
5423
5372
|
try {
|
|
5424
5373
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
5425
5374
|
var focusableElement = _step3.value;
|
|
@@ -5430,7 +5379,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5430
5379
|
} finally {
|
|
5431
5380
|
_iterator3.f();
|
|
5432
5381
|
}
|
|
5433
|
-
|
|
5434
5382
|
return visibleFocusableElements;
|
|
5435
5383
|
}
|
|
5436
5384
|
}, {
|
|
@@ -5473,31 +5421,24 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5473
5421
|
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
5474
5422
|
}
|
|
5475
5423
|
}]);
|
|
5476
|
-
|
|
5477
5424
|
return DomHandler;
|
|
5478
5425
|
}();
|
|
5479
5426
|
|
|
5480
|
-
|
|
5481
5427
|
// CONCATENATED MODULE: ./src/components/utils/ConnectedOverlayScrollHandler.js
|
|
5482
5428
|
|
|
5483
5429
|
|
|
5484
5430
|
|
|
5485
|
-
|
|
5486
5431
|
var ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler = /*#__PURE__*/function () {
|
|
5487
5432
|
function ConnectedOverlayScrollHandler(element) {
|
|
5488
5433
|
var listener = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
5489
|
-
|
|
5490
5434
|
_classCallCheck(this, ConnectedOverlayScrollHandler);
|
|
5491
|
-
|
|
5492
5435
|
this.element = element;
|
|
5493
5436
|
this.listener = listener;
|
|
5494
5437
|
}
|
|
5495
|
-
|
|
5496
5438
|
_createClass(ConnectedOverlayScrollHandler, [{
|
|
5497
5439
|
key: "bindScrollListener",
|
|
5498
5440
|
value: function bindScrollListener() {
|
|
5499
5441
|
this.scrollableParents = DomHandler_DomHandler.getScrollableParents(this.element);
|
|
5500
|
-
|
|
5501
5442
|
for (var i = 0; i < this.scrollableParents.length; i++) {
|
|
5502
5443
|
this.scrollableParents[i].addEventListener('scroll', this.listener);
|
|
5503
5444
|
}
|
|
@@ -5520,11 +5461,9 @@ var ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler = /*#__PURE__*/f
|
|
|
5520
5461
|
this.scrollableParents = null;
|
|
5521
5462
|
}
|
|
5522
5463
|
}]);
|
|
5523
|
-
|
|
5524
5464
|
return ConnectedOverlayScrollHandler;
|
|
5525
5465
|
}();
|
|
5526
5466
|
|
|
5527
|
-
|
|
5528
5467
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
|
|
5529
5468
|
var web_dom_iterable = __webpack_require__("ac6a");
|
|
5530
5469
|
|
|
@@ -5571,18 +5510,13 @@ function _typeof(obj) {
|
|
|
5571
5510
|
|
|
5572
5511
|
|
|
5573
5512
|
|
|
5574
|
-
|
|
5575
5513
|
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; } } }; }
|
|
5576
|
-
|
|
5577
5514
|
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); }
|
|
5578
|
-
|
|
5579
5515
|
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; }
|
|
5580
|
-
|
|
5581
5516
|
var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
5582
5517
|
function ObjectUtils() {
|
|
5583
5518
|
_classCallCheck(this, ObjectUtils);
|
|
5584
5519
|
}
|
|
5585
|
-
|
|
5586
5520
|
_createClass(ObjectUtils, null, [{
|
|
5587
5521
|
key: "equals",
|
|
5588
5522
|
value: function equals(obj1, obj2, field) {
|
|
@@ -5592,50 +5526,41 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5592
5526
|
key: "deepEquals",
|
|
5593
5527
|
value: function deepEquals(a, b) {
|
|
5594
5528
|
if (a === b) return true;
|
|
5595
|
-
|
|
5596
5529
|
if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
|
|
5597
5530
|
var arrA = Array.isArray(a),
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5531
|
+
arrB = Array.isArray(b),
|
|
5532
|
+
i,
|
|
5533
|
+
length,
|
|
5534
|
+
key;
|
|
5603
5535
|
if (arrA && arrB) {
|
|
5604
5536
|
length = a.length;
|
|
5605
5537
|
if (length != b.length) return false;
|
|
5606
|
-
|
|
5607
5538
|
for (i = length; i-- !== 0;) {
|
|
5608
5539
|
if (!this.deepEquals(a[i], b[i])) return false;
|
|
5609
5540
|
}
|
|
5610
|
-
|
|
5611
5541
|
return true;
|
|
5612
5542
|
}
|
|
5613
|
-
|
|
5614
5543
|
if (arrA != arrB) return false;
|
|
5615
5544
|
var dateA = a instanceof Date,
|
|
5616
|
-
|
|
5545
|
+
dateB = b instanceof Date;
|
|
5617
5546
|
if (dateA != dateB) return false;
|
|
5618
5547
|
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
5619
5548
|
var regexpA = a instanceof RegExp,
|
|
5620
|
-
|
|
5549
|
+
regexpB = b instanceof RegExp;
|
|
5621
5550
|
if (regexpA != regexpB) return false;
|
|
5622
5551
|
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
5623
5552
|
var keys = Object.keys(a);
|
|
5624
5553
|
length = keys.length;
|
|
5625
5554
|
if (length !== Object.keys(b).length) return false;
|
|
5626
|
-
|
|
5627
5555
|
for (i = length; i-- !== 0;) {
|
|
5628
5556
|
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
5629
5557
|
}
|
|
5630
|
-
|
|
5631
5558
|
for (i = length; i-- !== 0;) {
|
|
5632
5559
|
key = keys[i];
|
|
5633
5560
|
if (!this.deepEquals(a[key], b[key])) return false;
|
|
5634
5561
|
}
|
|
5635
|
-
|
|
5636
5562
|
return true;
|
|
5637
5563
|
}
|
|
5638
|
-
|
|
5639
5564
|
return a !== a && b !== b;
|
|
5640
5565
|
}
|
|
5641
5566
|
}, {
|
|
@@ -5649,15 +5574,12 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5649
5574
|
} else {
|
|
5650
5575
|
var fields = field.split('.');
|
|
5651
5576
|
var value = data;
|
|
5652
|
-
|
|
5653
5577
|
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
5654
5578
|
if (value == null) {
|
|
5655
5579
|
return null;
|
|
5656
5580
|
}
|
|
5657
|
-
|
|
5658
5581
|
value = value[fields[i]];
|
|
5659
5582
|
}
|
|
5660
|
-
|
|
5661
5583
|
return value;
|
|
5662
5584
|
}
|
|
5663
5585
|
} else {
|
|
@@ -5673,22 +5595,17 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5673
5595
|
key: "filter",
|
|
5674
5596
|
value: function filter(value, fields, filterValue) {
|
|
5675
5597
|
var filteredItems = [];
|
|
5676
|
-
|
|
5677
5598
|
if (value) {
|
|
5678
5599
|
var _iterator = ObjectUtils_createForOfIteratorHelper(value),
|
|
5679
|
-
|
|
5680
|
-
|
|
5600
|
+
_step;
|
|
5681
5601
|
try {
|
|
5682
5602
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5683
5603
|
var item = _step.value;
|
|
5684
|
-
|
|
5685
5604
|
var _iterator2 = ObjectUtils_createForOfIteratorHelper(fields),
|
|
5686
|
-
|
|
5687
|
-
|
|
5605
|
+
_step2;
|
|
5688
5606
|
try {
|
|
5689
5607
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
5690
5608
|
var field = _step2.value;
|
|
5691
|
-
|
|
5692
5609
|
if (String(this.resolveFieldData(item, field)).toLowerCase().indexOf(filterValue.toLowerCase()) > -1) {
|
|
5693
5610
|
filteredItems.push(item);
|
|
5694
5611
|
break;
|
|
@@ -5706,23 +5623,19 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5706
5623
|
_iterator.f();
|
|
5707
5624
|
}
|
|
5708
5625
|
}
|
|
5709
|
-
|
|
5710
5626
|
return filteredItems;
|
|
5711
5627
|
}
|
|
5712
5628
|
}, {
|
|
5713
5629
|
key: "reorderArray",
|
|
5714
5630
|
value: function reorderArray(value, from, to) {
|
|
5715
5631
|
var target;
|
|
5716
|
-
|
|
5717
5632
|
if (value && from !== to) {
|
|
5718
5633
|
if (to >= value.length) {
|
|
5719
5634
|
target = to - value.length;
|
|
5720
|
-
|
|
5721
5635
|
while (target-- + 1) {
|
|
5722
5636
|
value.push(undefined);
|
|
5723
5637
|
}
|
|
5724
5638
|
}
|
|
5725
|
-
|
|
5726
5639
|
value.splice(to, 0, value.splice(from, 1)[0]);
|
|
5727
5640
|
}
|
|
5728
5641
|
}
|
|
@@ -5730,7 +5643,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5730
5643
|
key: "findIndexInList",
|
|
5731
5644
|
value: function findIndexInList(value, list) {
|
|
5732
5645
|
var index = -1;
|
|
5733
|
-
|
|
5734
5646
|
if (list) {
|
|
5735
5647
|
for (var i = 0; i < list.length; i++) {
|
|
5736
5648
|
if (list[i] === value) {
|
|
@@ -5739,7 +5651,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5739
5651
|
}
|
|
5740
5652
|
}
|
|
5741
5653
|
}
|
|
5742
|
-
|
|
5743
5654
|
return index;
|
|
5744
5655
|
}
|
|
5745
5656
|
}, {
|
|
@@ -5747,8 +5658,7 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5747
5658
|
value: function contains(value, list) {
|
|
5748
5659
|
if (value != null && list && list.length) {
|
|
5749
5660
|
var _iterator3 = ObjectUtils_createForOfIteratorHelper(list),
|
|
5750
|
-
|
|
5751
|
-
|
|
5661
|
+
_step3;
|
|
5752
5662
|
try {
|
|
5753
5663
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
5754
5664
|
var val = _step3.value;
|
|
@@ -5760,7 +5670,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5760
5670
|
_iterator3.f();
|
|
5761
5671
|
}
|
|
5762
5672
|
}
|
|
5763
|
-
|
|
5764
5673
|
return false;
|
|
5765
5674
|
}
|
|
5766
5675
|
}, {
|
|
@@ -5768,17 +5677,14 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5768
5677
|
value: function insertIntoOrderedArray(item, index, arr, sourceArr) {
|
|
5769
5678
|
if (arr.length > 0) {
|
|
5770
5679
|
var injected = false;
|
|
5771
|
-
|
|
5772
5680
|
for (var i = 0; i < arr.length; i++) {
|
|
5773
5681
|
var currentItemIndex = this.findIndexInList(arr[i], sourceArr);
|
|
5774
|
-
|
|
5775
5682
|
if (currentItemIndex > index) {
|
|
5776
5683
|
arr.splice(i, 0, item);
|
|
5777
5684
|
injected = true;
|
|
5778
5685
|
break;
|
|
5779
5686
|
}
|
|
5780
5687
|
}
|
|
5781
|
-
|
|
5782
5688
|
if (!injected) {
|
|
5783
5689
|
arr.push(item);
|
|
5784
5690
|
}
|
|
@@ -5792,72 +5698,57 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5792
5698
|
if (str && str.search(/[\xC0-\xFF]/g) > -1) {
|
|
5793
5699
|
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");
|
|
5794
5700
|
}
|
|
5795
|
-
|
|
5796
5701
|
return str;
|
|
5797
5702
|
}
|
|
5798
5703
|
}, {
|
|
5799
5704
|
key: "getVNodeProp",
|
|
5800
5705
|
value: function getVNodeProp(vnode, prop) {
|
|
5801
5706
|
var props = vnode._props;
|
|
5802
|
-
|
|
5803
5707
|
if (props) {
|
|
5804
5708
|
var kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
5805
5709
|
var propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
|
|
5806
5710
|
return props[propName];
|
|
5807
5711
|
}
|
|
5808
|
-
|
|
5809
5712
|
return null;
|
|
5810
5713
|
}
|
|
5811
5714
|
}]);
|
|
5812
|
-
|
|
5813
5715
|
return ObjectUtils;
|
|
5814
5716
|
}();
|
|
5815
5717
|
|
|
5816
|
-
|
|
5817
5718
|
// CONCATENATED MODULE: ./src/components/ripple/Ripple.js
|
|
5818
5719
|
|
|
5819
|
-
|
|
5820
5720
|
function bindEvents(el) {
|
|
5821
5721
|
el.addEventListener('mousedown', onMouseDown);
|
|
5822
5722
|
}
|
|
5823
|
-
|
|
5824
5723
|
function unbindEvents(el) {
|
|
5825
5724
|
el.removeEventListener('mousedown', onMouseDown);
|
|
5826
5725
|
}
|
|
5827
|
-
|
|
5828
5726
|
function create(el) {
|
|
5829
5727
|
var ink = document.createElement('span');
|
|
5830
5728
|
ink.className = 'p-ink';
|
|
5831
5729
|
el.appendChild(ink);
|
|
5832
5730
|
ink.addEventListener('animationend', onAnimationEnd);
|
|
5833
5731
|
}
|
|
5834
|
-
|
|
5835
5732
|
function remove(el) {
|
|
5836
5733
|
var ink = getInk(el);
|
|
5837
|
-
|
|
5838
5734
|
if (ink) {
|
|
5839
5735
|
unbindEvents(el);
|
|
5840
5736
|
ink.removeEventListener('animationend', onAnimationEnd);
|
|
5841
5737
|
ink.remove();
|
|
5842
5738
|
}
|
|
5843
5739
|
}
|
|
5844
|
-
|
|
5845
5740
|
function onMouseDown(event) {
|
|
5846
5741
|
var target = event.currentTarget;
|
|
5847
5742
|
var ink = getInk(target);
|
|
5848
|
-
|
|
5849
5743
|
if (!ink || getComputedStyle(ink, null).display === 'none') {
|
|
5850
5744
|
return;
|
|
5851
5745
|
}
|
|
5852
|
-
|
|
5853
5746
|
DomHandler_DomHandler.removeClass(ink, 'p-ink-active');
|
|
5854
|
-
|
|
5855
5747
|
if (!DomHandler_DomHandler.getHeight(ink) && !DomHandler_DomHandler.getWidth(ink)) {
|
|
5856
5748
|
var d = Math.max(DomHandler_DomHandler.getOuterWidth(target), DomHandler_DomHandler.getOuterHeight(target));
|
|
5857
5749
|
ink.style.height = d + 'px';
|
|
5858
5750
|
ink.style.width = d + 'px';
|
|
5859
5751
|
}
|
|
5860
|
-
|
|
5861
5752
|
var offset = DomHandler_DomHandler.getOffset(target);
|
|
5862
5753
|
var x = event.pageX - offset.left + document.body.scrollTop - DomHandler_DomHandler.getWidth(ink) / 2;
|
|
5863
5754
|
var y = event.pageY - offset.top + document.body.scrollLeft - DomHandler_DomHandler.getHeight(ink) / 2;
|
|
@@ -5865,21 +5756,17 @@ function onMouseDown(event) {
|
|
|
5865
5756
|
ink.style.left = x + 'px';
|
|
5866
5757
|
DomHandler_DomHandler.addClass(ink, 'p-ink-active');
|
|
5867
5758
|
}
|
|
5868
|
-
|
|
5869
5759
|
function onAnimationEnd(event) {
|
|
5870
5760
|
DomHandler_DomHandler.removeClass(event.currentTarget, 'p-ink-active');
|
|
5871
5761
|
}
|
|
5872
|
-
|
|
5873
5762
|
function getInk(el) {
|
|
5874
5763
|
for (var i = 0; i < el.children.length; i++) {
|
|
5875
5764
|
if (typeof el.children[i].className === 'string' && el.children[i].className.indexOf('p-ink') !== -1) {
|
|
5876
5765
|
return el.children[i];
|
|
5877
5766
|
}
|
|
5878
5767
|
}
|
|
5879
|
-
|
|
5880
5768
|
return null;
|
|
5881
5769
|
}
|
|
5882
|
-
|
|
5883
5770
|
var Ripple = {
|
|
5884
5771
|
inserted: function inserted(el, binding, vnode) {
|
|
5885
5772
|
if (vnode.context.$primevue && vnode.context.$primevue.config.ripple) {
|
|
@@ -5901,17 +5788,13 @@ var Ripple = {
|
|
|
5901
5788
|
|
|
5902
5789
|
|
|
5903
5790
|
|
|
5904
|
-
|
|
5905
5791
|
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; } } }; }
|
|
5906
|
-
|
|
5907
5792
|
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); }
|
|
5908
|
-
|
|
5909
5793
|
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; }
|
|
5910
5794
|
|
|
5911
5795
|
|
|
5912
5796
|
|
|
5913
5797
|
|
|
5914
|
-
|
|
5915
5798
|
/* harmony default export */ var Dropdownvue_type_script_lang_js_ = ({
|
|
5916
5799
|
props: {
|
|
5917
5800
|
value: null,
|
|
@@ -5967,7 +5850,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5967
5850
|
if (this.overlayVisible && this.isModelValueChanged) {
|
|
5968
5851
|
this.scrollValueInView();
|
|
5969
5852
|
}
|
|
5970
|
-
|
|
5971
5853
|
this.isModelValueChanged = false;
|
|
5972
5854
|
this.onFilterUpdated();
|
|
5973
5855
|
},
|
|
@@ -5975,7 +5857,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5975
5857
|
this.restoreAppend();
|
|
5976
5858
|
this.unbindOutsideClickListener();
|
|
5977
5859
|
this.unbindResizeListener();
|
|
5978
|
-
|
|
5979
5860
|
if (this.scrollHandler) {
|
|
5980
5861
|
this.scrollHandler.destroy();
|
|
5981
5862
|
this.scrollHandler = null;
|
|
@@ -5996,15 +5877,12 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5996
5877
|
},
|
|
5997
5878
|
getSelectedOption: function getSelectedOption() {
|
|
5998
5879
|
var selectedOption;
|
|
5999
|
-
|
|
6000
5880
|
if (this.value != null && this.options) {
|
|
6001
5881
|
var _iterator = Dropdownvue_type_script_lang_js_createForOfIteratorHelper(this.options),
|
|
6002
|
-
|
|
6003
|
-
|
|
5882
|
+
_step;
|
|
6004
5883
|
try {
|
|
6005
5884
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6006
5885
|
var option = _step.value;
|
|
6007
|
-
|
|
6008
5886
|
if (ObjectUtils_ObjectUtils.equals(this.value, this.getOptionValue(option), this.equalityKey)) {
|
|
6009
5887
|
selectedOption = option;
|
|
6010
5888
|
break;
|
|
@@ -6016,7 +5894,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6016
5894
|
_iterator.f();
|
|
6017
5895
|
}
|
|
6018
5896
|
}
|
|
6019
|
-
|
|
6020
5897
|
return selectedOption;
|
|
6021
5898
|
},
|
|
6022
5899
|
isSelected: function isSelected(option) {
|
|
@@ -6024,7 +5901,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6024
5901
|
},
|
|
6025
5902
|
getSelectedOptionIndex: function getSelectedOptionIndex() {
|
|
6026
5903
|
var selectedOptionIndex = -1;
|
|
6027
|
-
|
|
6028
5904
|
if (this.value != null && this.visibleOptions) {
|
|
6029
5905
|
for (var i = 0; i < this.visibleOptions.length; i++) {
|
|
6030
5906
|
if (ObjectUtils_ObjectUtils.equals(this.value, this.getOptionValue(this.visibleOptions[i]), this.equalityKey)) {
|
|
@@ -6033,7 +5909,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6033
5909
|
}
|
|
6034
5910
|
}
|
|
6035
5911
|
}
|
|
6036
|
-
|
|
6037
5912
|
return selectedOptionIndex;
|
|
6038
5913
|
},
|
|
6039
5914
|
show: function show() {
|
|
@@ -6056,36 +5931,33 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6056
5931
|
case 40:
|
|
6057
5932
|
this.onDownKey(event);
|
|
6058
5933
|
break;
|
|
6059
|
-
//up
|
|
6060
5934
|
|
|
5935
|
+
//up
|
|
6061
5936
|
case 38:
|
|
6062
5937
|
this.onUpKey(event);
|
|
6063
5938
|
break;
|
|
6064
|
-
//space
|
|
6065
5939
|
|
|
5940
|
+
//space
|
|
6066
5941
|
case 32:
|
|
6067
5942
|
if (!this.overlayVisible) {
|
|
6068
5943
|
this.show();
|
|
6069
5944
|
event.preventDefault();
|
|
6070
5945
|
}
|
|
6071
|
-
|
|
6072
5946
|
break;
|
|
6073
|
-
//enter and escape
|
|
6074
5947
|
|
|
5948
|
+
//enter and escape
|
|
6075
5949
|
case 13:
|
|
6076
5950
|
case 27:
|
|
6077
5951
|
if (this.overlayVisible) {
|
|
6078
5952
|
this.hide();
|
|
6079
5953
|
event.preventDefault();
|
|
6080
5954
|
}
|
|
6081
|
-
|
|
6082
5955
|
break;
|
|
6083
|
-
//tab
|
|
6084
5956
|
|
|
5957
|
+
//tab
|
|
6085
5958
|
case 9:
|
|
6086
5959
|
this.hide();
|
|
6087
5960
|
break;
|
|
6088
|
-
|
|
6089
5961
|
default:
|
|
6090
5962
|
this.search(event);
|
|
6091
5963
|
break;
|
|
@@ -6097,19 +5969,18 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6097
5969
|
case 40:
|
|
6098
5970
|
this.onDownKey(event);
|
|
6099
5971
|
break;
|
|
6100
|
-
//up
|
|
6101
5972
|
|
|
5973
|
+
//up
|
|
6102
5974
|
case 38:
|
|
6103
5975
|
this.onUpKey(event);
|
|
6104
5976
|
break;
|
|
6105
|
-
//enter and escape
|
|
6106
5977
|
|
|
5978
|
+
//enter and escape
|
|
6107
5979
|
case 13:
|
|
6108
5980
|
case 27:
|
|
6109
5981
|
this.overlayVisible = false;
|
|
6110
5982
|
event.preventDefault();
|
|
6111
5983
|
break;
|
|
6112
|
-
|
|
6113
5984
|
default:
|
|
6114
5985
|
break;
|
|
6115
5986
|
}
|
|
@@ -6120,43 +5991,35 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6120
5991
|
this.show();
|
|
6121
5992
|
} else {
|
|
6122
5993
|
var nextOption = this.findNextOption(this.getSelectedOptionIndex());
|
|
6123
|
-
|
|
6124
5994
|
if (nextOption) {
|
|
6125
5995
|
this.updateModel(event, this.getOptionValue(nextOption));
|
|
6126
5996
|
}
|
|
6127
5997
|
}
|
|
6128
5998
|
}
|
|
6129
|
-
|
|
6130
5999
|
event.preventDefault();
|
|
6131
6000
|
},
|
|
6132
6001
|
onUpKey: function onUpKey(event) {
|
|
6133
6002
|
if (this.visibleOptions) {
|
|
6134
6003
|
var prevOption = this.findPrevOption(this.getSelectedOptionIndex());
|
|
6135
|
-
|
|
6136
6004
|
if (prevOption) {
|
|
6137
6005
|
this.updateModel(event, this.getOptionValue(prevOption));
|
|
6138
6006
|
}
|
|
6139
6007
|
}
|
|
6140
|
-
|
|
6141
6008
|
event.preventDefault();
|
|
6142
6009
|
},
|
|
6143
6010
|
findNextOption: function findNextOption(index) {
|
|
6144
6011
|
var i = index + 1;
|
|
6145
|
-
|
|
6146
6012
|
if (i === this.visibleOptions.length) {
|
|
6147
6013
|
return null;
|
|
6148
6014
|
}
|
|
6149
|
-
|
|
6150
6015
|
var option = this.visibleOptions[i];
|
|
6151
6016
|
if (this.isOptionDisabled(option)) return this.findNextOption(i);else return option;
|
|
6152
6017
|
},
|
|
6153
6018
|
findPrevOption: function findPrevOption(index) {
|
|
6154
6019
|
var i = index - 1;
|
|
6155
|
-
|
|
6156
6020
|
if (i < 0) {
|
|
6157
6021
|
return null;
|
|
6158
6022
|
}
|
|
6159
|
-
|
|
6160
6023
|
var option = this.visibleOptions[i];
|
|
6161
6024
|
if (this.isOptionDisabled(option)) return this.findPrevOption(i);else return option;
|
|
6162
6025
|
},
|
|
@@ -6167,7 +6030,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6167
6030
|
if (this.disabled) {
|
|
6168
6031
|
return;
|
|
6169
6032
|
}
|
|
6170
|
-
|
|
6171
6033
|
if (DomHandler_DomHandler.hasClass(event.target, 'p-dropdown-clear-icon') || event.target.tagName === 'INPUT') {
|
|
6172
6034
|
return;
|
|
6173
6035
|
} else if (!this.$refs.overlay || !this.$refs.overlay.contains(event.target)) {
|
|
@@ -6177,7 +6039,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6177
6039
|
},
|
|
6178
6040
|
onOptionSelect: function onOptionSelect(event, option) {
|
|
6179
6041
|
var _this = this;
|
|
6180
|
-
|
|
6181
6042
|
var value = this.getOptionValue(option);
|
|
6182
6043
|
this.updateModel(event, value);
|
|
6183
6044
|
this.$refs.focusInput.focus();
|
|
@@ -6195,11 +6056,9 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6195
6056
|
this.bindOutsideClickListener();
|
|
6196
6057
|
this.bindScrollListener();
|
|
6197
6058
|
this.bindResizeListener();
|
|
6198
|
-
|
|
6199
6059
|
if (this.filter) {
|
|
6200
6060
|
this.$refs.filterInput.focus();
|
|
6201
6061
|
}
|
|
6202
|
-
|
|
6203
6062
|
this.$emit('show');
|
|
6204
6063
|
},
|
|
6205
6064
|
onOverlayLeave: function onOverlayLeave() {
|
|
@@ -6225,14 +6084,12 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6225
6084
|
},
|
|
6226
6085
|
bindOutsideClickListener: function bindOutsideClickListener() {
|
|
6227
6086
|
var _this2 = this;
|
|
6228
|
-
|
|
6229
6087
|
if (!this.outsideClickListener) {
|
|
6230
6088
|
this.outsideClickListener = function (event) {
|
|
6231
6089
|
if (_this2.overlayVisible && _this2.$refs.overlay && !_this2.$refs.container.contains(event.target) && !_this2.$refs.overlay.contains(event.target)) {
|
|
6232
6090
|
_this2.hide();
|
|
6233
6091
|
}
|
|
6234
6092
|
};
|
|
6235
|
-
|
|
6236
6093
|
document.addEventListener('click', this.outsideClickListener);
|
|
6237
6094
|
}
|
|
6238
6095
|
},
|
|
@@ -6244,7 +6101,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6244
6101
|
},
|
|
6245
6102
|
bindScrollListener: function bindScrollListener() {
|
|
6246
6103
|
var _this3 = this;
|
|
6247
|
-
|
|
6248
6104
|
if (!this.scrollHandler) {
|
|
6249
6105
|
this.scrollHandler = new ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler(this.$el, function () {
|
|
6250
6106
|
if (_this3.overlayVisible) {
|
|
@@ -6252,7 +6108,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6252
6108
|
}
|
|
6253
6109
|
});
|
|
6254
6110
|
}
|
|
6255
|
-
|
|
6256
6111
|
this.scrollHandler.bindScrollListener();
|
|
6257
6112
|
},
|
|
6258
6113
|
unbindScrollListener: function unbindScrollListener() {
|
|
@@ -6262,14 +6117,12 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6262
6117
|
},
|
|
6263
6118
|
bindResizeListener: function bindResizeListener() {
|
|
6264
6119
|
var _this4 = this;
|
|
6265
|
-
|
|
6266
6120
|
if (!this.resizeListener) {
|
|
6267
6121
|
this.resizeListener = function () {
|
|
6268
6122
|
if (_this4.overlayVisible && !DomHandler_DomHandler.isTouchDevice()) {
|
|
6269
6123
|
_this4.hide();
|
|
6270
6124
|
}
|
|
6271
6125
|
};
|
|
6272
|
-
|
|
6273
6126
|
window.addEventListener('resize', this.resizeListener);
|
|
6274
6127
|
}
|
|
6275
6128
|
},
|
|
@@ -6281,53 +6134,43 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6281
6134
|
},
|
|
6282
6135
|
search: function search(event) {
|
|
6283
6136
|
var _this5 = this;
|
|
6284
|
-
|
|
6285
6137
|
if (!this.visibleOptions) {
|
|
6286
6138
|
return;
|
|
6287
6139
|
}
|
|
6288
|
-
|
|
6289
6140
|
if (this.searchTimeout) {
|
|
6290
6141
|
clearTimeout(this.searchTimeout);
|
|
6291
6142
|
}
|
|
6292
|
-
|
|
6293
6143
|
var char = event.key;
|
|
6294
6144
|
this.previousSearchChar = this.currentSearchChar;
|
|
6295
6145
|
this.currentSearchChar = char;
|
|
6296
6146
|
if (this.previousSearchChar === this.currentSearchChar) this.searchValue = this.currentSearchChar;else this.searchValue = this.searchValue ? this.searchValue + char : char;
|
|
6297
6147
|
var searchIndex = this.getSelectedOptionIndex();
|
|
6298
6148
|
var newOption = this.searchOption(++searchIndex);
|
|
6299
|
-
|
|
6300
6149
|
if (newOption) {
|
|
6301
6150
|
this.updateModel(event, this.getOptionValue(newOption));
|
|
6302
6151
|
}
|
|
6303
|
-
|
|
6304
6152
|
this.searchTimeout = setTimeout(function () {
|
|
6305
6153
|
_this5.searchValue = null;
|
|
6306
6154
|
}, 250);
|
|
6307
6155
|
},
|
|
6308
6156
|
searchOption: function searchOption(index) {
|
|
6309
6157
|
var option;
|
|
6310
|
-
|
|
6311
6158
|
if (this.searchValue) {
|
|
6312
6159
|
option = this.searchOptionInRange(index, this.visibleOptions.length);
|
|
6313
|
-
|
|
6314
6160
|
if (!option) {
|
|
6315
6161
|
option = this.searchOptionInRange(0, index);
|
|
6316
6162
|
}
|
|
6317
6163
|
}
|
|
6318
|
-
|
|
6319
6164
|
return option;
|
|
6320
6165
|
},
|
|
6321
6166
|
searchOptionInRange: function searchOptionInRange(start, end) {
|
|
6322
6167
|
for (var i = start; i < end; i++) {
|
|
6323
6168
|
var opt = this.visibleOptions[i];
|
|
6324
6169
|
var label = this.getOptionLabel(opt).toLocaleLowerCase(this.filterLocale);
|
|
6325
|
-
|
|
6326
6170
|
if (label.startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))) {
|
|
6327
6171
|
return opt;
|
|
6328
6172
|
}
|
|
6329
6173
|
}
|
|
6330
|
-
|
|
6331
6174
|
return null;
|
|
6332
6175
|
},
|
|
6333
6176
|
appendContainer: function appendContainer() {
|
|
@@ -6355,7 +6198,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6355
6198
|
scrollValueInView: function scrollValueInView() {
|
|
6356
6199
|
if (this.$refs.overlay) {
|
|
6357
6200
|
var selectedItem = DomHandler_DomHandler.findSingle(this.$refs.overlay, 'li.p-highlight');
|
|
6358
|
-
|
|
6359
6201
|
if (selectedItem) {
|
|
6360
6202
|
selectedItem.scrollIntoView({
|
|
6361
6203
|
block: 'nearest',
|
|
@@ -6368,7 +6210,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6368
6210
|
computed: {
|
|
6369
6211
|
visibleOptions: function visibleOptions() {
|
|
6370
6212
|
var _this6 = this;
|
|
6371
|
-
|
|
6372
6213
|
if (this.filterValue && this.filterValue.trim().length > 0) return this.options.filter(function (option) {
|
|
6373
6214
|
return _this6.getOptionLabel(option).toLocaleLowerCase(_this6.filterLocale).indexOf(_this6.filterValue.toLocaleLowerCase(_this6.filterLocale)) > -1;
|
|
6374
6215
|
});else return this.options;
|
|
@@ -6546,7 +6387,6 @@ var component = normalizeComponent(
|
|
|
6546
6387
|
computed: {
|
|
6547
6388
|
rowsOptions: function rowsOptions() {
|
|
6548
6389
|
var opts = [];
|
|
6549
|
-
|
|
6550
6390
|
if (this.options) {
|
|
6551
6391
|
for (var i = 0; i < this.options.length; i++) {
|
|
6552
6392
|
opts.push({
|
|
@@ -6555,7 +6395,6 @@ var component = normalizeComponent(
|
|
|
6555
6395
|
});
|
|
6556
6396
|
}
|
|
6557
6397
|
}
|
|
6558
|
-
|
|
6559
6398
|
return opts;
|
|
6560
6399
|
}
|
|
6561
6400
|
},
|