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
|
@@ -4065,26 +4065,21 @@ var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property
|
|
|
4065
4065
|
|
|
4066
4066
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
|
|
4067
4067
|
|
|
4068
|
-
|
|
4069
4068
|
function _defineProperties(target, props) {
|
|
4070
4069
|
for (var i = 0; i < props.length; i++) {
|
|
4071
4070
|
var descriptor = props[i];
|
|
4072
4071
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
4073
4072
|
descriptor.configurable = true;
|
|
4074
4073
|
if ("value" in descriptor) descriptor.writable = true;
|
|
4075
|
-
|
|
4076
4074
|
define_property_default()(target, descriptor.key, descriptor);
|
|
4077
4075
|
}
|
|
4078
4076
|
}
|
|
4079
|
-
|
|
4080
4077
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
4081
4078
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
4082
4079
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
4083
|
-
|
|
4084
4080
|
define_property_default()(Constructor, "prototype", {
|
|
4085
4081
|
writable: false
|
|
4086
4082
|
});
|
|
4087
|
-
|
|
4088
4083
|
return Constructor;
|
|
4089
4084
|
}
|
|
4090
4085
|
// CONCATENATED MODULE: ./src/components/utils/ObjectUtils.js
|
|
@@ -4104,18 +4099,13 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
4104
4099
|
|
|
4105
4100
|
|
|
4106
4101
|
|
|
4107
|
-
|
|
4108
4102
|
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; } } }; }
|
|
4109
|
-
|
|
4110
4103
|
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); }
|
|
4111
|
-
|
|
4112
4104
|
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; }
|
|
4113
|
-
|
|
4114
4105
|
var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
4115
4106
|
function ObjectUtils() {
|
|
4116
4107
|
_classCallCheck(this, ObjectUtils);
|
|
4117
4108
|
}
|
|
4118
|
-
|
|
4119
4109
|
_createClass(ObjectUtils, null, [{
|
|
4120
4110
|
key: "equals",
|
|
4121
4111
|
value: function equals(obj1, obj2, field) {
|
|
@@ -4125,50 +4115,41 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4125
4115
|
key: "deepEquals",
|
|
4126
4116
|
value: function deepEquals(a, b) {
|
|
4127
4117
|
if (a === b) return true;
|
|
4128
|
-
|
|
4129
4118
|
if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
|
|
4130
4119
|
var arrA = Array.isArray(a),
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4120
|
+
arrB = Array.isArray(b),
|
|
4121
|
+
i,
|
|
4122
|
+
length,
|
|
4123
|
+
key;
|
|
4136
4124
|
if (arrA && arrB) {
|
|
4137
4125
|
length = a.length;
|
|
4138
4126
|
if (length != b.length) return false;
|
|
4139
|
-
|
|
4140
4127
|
for (i = length; i-- !== 0;) {
|
|
4141
4128
|
if (!this.deepEquals(a[i], b[i])) return false;
|
|
4142
4129
|
}
|
|
4143
|
-
|
|
4144
4130
|
return true;
|
|
4145
4131
|
}
|
|
4146
|
-
|
|
4147
4132
|
if (arrA != arrB) return false;
|
|
4148
4133
|
var dateA = a instanceof Date,
|
|
4149
|
-
|
|
4134
|
+
dateB = b instanceof Date;
|
|
4150
4135
|
if (dateA != dateB) return false;
|
|
4151
4136
|
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
4152
4137
|
var regexpA = a instanceof RegExp,
|
|
4153
|
-
|
|
4138
|
+
regexpB = b instanceof RegExp;
|
|
4154
4139
|
if (regexpA != regexpB) return false;
|
|
4155
4140
|
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
4156
4141
|
var keys = Object.keys(a);
|
|
4157
4142
|
length = keys.length;
|
|
4158
4143
|
if (length !== Object.keys(b).length) return false;
|
|
4159
|
-
|
|
4160
4144
|
for (i = length; i-- !== 0;) {
|
|
4161
4145
|
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
4162
4146
|
}
|
|
4163
|
-
|
|
4164
4147
|
for (i = length; i-- !== 0;) {
|
|
4165
4148
|
key = keys[i];
|
|
4166
4149
|
if (!this.deepEquals(a[key], b[key])) return false;
|
|
4167
4150
|
}
|
|
4168
|
-
|
|
4169
4151
|
return true;
|
|
4170
4152
|
}
|
|
4171
|
-
|
|
4172
4153
|
return a !== a && b !== b;
|
|
4173
4154
|
}
|
|
4174
4155
|
}, {
|
|
@@ -4182,15 +4163,12 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4182
4163
|
} else {
|
|
4183
4164
|
var fields = field.split('.');
|
|
4184
4165
|
var value = data;
|
|
4185
|
-
|
|
4186
4166
|
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
4187
4167
|
if (value == null) {
|
|
4188
4168
|
return null;
|
|
4189
4169
|
}
|
|
4190
|
-
|
|
4191
4170
|
value = value[fields[i]];
|
|
4192
4171
|
}
|
|
4193
|
-
|
|
4194
4172
|
return value;
|
|
4195
4173
|
}
|
|
4196
4174
|
} else {
|
|
@@ -4206,22 +4184,17 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4206
4184
|
key: "filter",
|
|
4207
4185
|
value: function filter(value, fields, filterValue) {
|
|
4208
4186
|
var filteredItems = [];
|
|
4209
|
-
|
|
4210
4187
|
if (value) {
|
|
4211
4188
|
var _iterator = _createForOfIteratorHelper(value),
|
|
4212
|
-
|
|
4213
|
-
|
|
4189
|
+
_step;
|
|
4214
4190
|
try {
|
|
4215
4191
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
4216
4192
|
var item = _step.value;
|
|
4217
|
-
|
|
4218
4193
|
var _iterator2 = _createForOfIteratorHelper(fields),
|
|
4219
|
-
|
|
4220
|
-
|
|
4194
|
+
_step2;
|
|
4221
4195
|
try {
|
|
4222
4196
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
4223
4197
|
var field = _step2.value;
|
|
4224
|
-
|
|
4225
4198
|
if (String(this.resolveFieldData(item, field)).toLowerCase().indexOf(filterValue.toLowerCase()) > -1) {
|
|
4226
4199
|
filteredItems.push(item);
|
|
4227
4200
|
break;
|
|
@@ -4239,23 +4212,19 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4239
4212
|
_iterator.f();
|
|
4240
4213
|
}
|
|
4241
4214
|
}
|
|
4242
|
-
|
|
4243
4215
|
return filteredItems;
|
|
4244
4216
|
}
|
|
4245
4217
|
}, {
|
|
4246
4218
|
key: "reorderArray",
|
|
4247
4219
|
value: function reorderArray(value, from, to) {
|
|
4248
4220
|
var target;
|
|
4249
|
-
|
|
4250
4221
|
if (value && from !== to) {
|
|
4251
4222
|
if (to >= value.length) {
|
|
4252
4223
|
target = to - value.length;
|
|
4253
|
-
|
|
4254
4224
|
while (target-- + 1) {
|
|
4255
4225
|
value.push(undefined);
|
|
4256
4226
|
}
|
|
4257
4227
|
}
|
|
4258
|
-
|
|
4259
4228
|
value.splice(to, 0, value.splice(from, 1)[0]);
|
|
4260
4229
|
}
|
|
4261
4230
|
}
|
|
@@ -4263,7 +4232,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4263
4232
|
key: "findIndexInList",
|
|
4264
4233
|
value: function findIndexInList(value, list) {
|
|
4265
4234
|
var index = -1;
|
|
4266
|
-
|
|
4267
4235
|
if (list) {
|
|
4268
4236
|
for (var i = 0; i < list.length; i++) {
|
|
4269
4237
|
if (list[i] === value) {
|
|
@@ -4272,7 +4240,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4272
4240
|
}
|
|
4273
4241
|
}
|
|
4274
4242
|
}
|
|
4275
|
-
|
|
4276
4243
|
return index;
|
|
4277
4244
|
}
|
|
4278
4245
|
}, {
|
|
@@ -4280,8 +4247,7 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4280
4247
|
value: function contains(value, list) {
|
|
4281
4248
|
if (value != null && list && list.length) {
|
|
4282
4249
|
var _iterator3 = _createForOfIteratorHelper(list),
|
|
4283
|
-
|
|
4284
|
-
|
|
4250
|
+
_step3;
|
|
4285
4251
|
try {
|
|
4286
4252
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
4287
4253
|
var val = _step3.value;
|
|
@@ -4293,7 +4259,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4293
4259
|
_iterator3.f();
|
|
4294
4260
|
}
|
|
4295
4261
|
}
|
|
4296
|
-
|
|
4297
4262
|
return false;
|
|
4298
4263
|
}
|
|
4299
4264
|
}, {
|
|
@@ -4301,17 +4266,14 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4301
4266
|
value: function insertIntoOrderedArray(item, index, arr, sourceArr) {
|
|
4302
4267
|
if (arr.length > 0) {
|
|
4303
4268
|
var injected = false;
|
|
4304
|
-
|
|
4305
4269
|
for (var i = 0; i < arr.length; i++) {
|
|
4306
4270
|
var currentItemIndex = this.findIndexInList(arr[i], sourceArr);
|
|
4307
|
-
|
|
4308
4271
|
if (currentItemIndex > index) {
|
|
4309
4272
|
arr.splice(i, 0, item);
|
|
4310
4273
|
injected = true;
|
|
4311
4274
|
break;
|
|
4312
4275
|
}
|
|
4313
4276
|
}
|
|
4314
|
-
|
|
4315
4277
|
if (!injected) {
|
|
4316
4278
|
arr.push(item);
|
|
4317
4279
|
}
|
|
@@ -4325,28 +4287,23 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4325
4287
|
if (str && str.search(/[\xC0-\xFF]/g) > -1) {
|
|
4326
4288
|
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");
|
|
4327
4289
|
}
|
|
4328
|
-
|
|
4329
4290
|
return str;
|
|
4330
4291
|
}
|
|
4331
4292
|
}, {
|
|
4332
4293
|
key: "getVNodeProp",
|
|
4333
4294
|
value: function getVNodeProp(vnode, prop) {
|
|
4334
4295
|
var props = vnode._props;
|
|
4335
|
-
|
|
4336
4296
|
if (props) {
|
|
4337
4297
|
var kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
4338
4298
|
var propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
|
|
4339
4299
|
return props[propName];
|
|
4340
4300
|
}
|
|
4341
|
-
|
|
4342
4301
|
return null;
|
|
4343
4302
|
}
|
|
4344
4303
|
}]);
|
|
4345
|
-
|
|
4346
4304
|
return ObjectUtils;
|
|
4347
4305
|
}();
|
|
4348
4306
|
|
|
4349
|
-
|
|
4350
4307
|
// CONCATENATED MODULE: ./src/components/api/FilterService.js
|
|
4351
4308
|
|
|
4352
4309
|
|
|
@@ -4354,34 +4311,25 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
4354
4311
|
|
|
4355
4312
|
|
|
4356
4313
|
|
|
4357
|
-
|
|
4358
4314
|
function FilterService_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = FilterService_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; } } }; }
|
|
4359
|
-
|
|
4360
4315
|
function FilterService_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return FilterService_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 FilterService_arrayLikeToArray(o, minLen); }
|
|
4361
|
-
|
|
4362
4316
|
function FilterService_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; }
|
|
4363
4317
|
|
|
4364
|
-
|
|
4365
4318
|
var FilterService = {
|
|
4366
4319
|
filter: function filter(value, fields, filterValue, filterMatchMode, filterLocale) {
|
|
4367
4320
|
var filteredItems = [];
|
|
4368
|
-
|
|
4369
4321
|
if (value) {
|
|
4370
4322
|
var _iterator = FilterService_createForOfIteratorHelper(value),
|
|
4371
|
-
|
|
4372
|
-
|
|
4323
|
+
_step;
|
|
4373
4324
|
try {
|
|
4374
4325
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
4375
4326
|
var item = _step.value;
|
|
4376
|
-
|
|
4377
4327
|
var _iterator2 = FilterService_createForOfIteratorHelper(fields),
|
|
4378
|
-
|
|
4379
|
-
|
|
4328
|
+
_step2;
|
|
4380
4329
|
try {
|
|
4381
4330
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
4382
4331
|
var field = _step2.value;
|
|
4383
4332
|
var fieldValue = ObjectUtils_ObjectUtils.resolveFieldData(item, field);
|
|
4384
|
-
|
|
4385
4333
|
if (this.filters[filterMatchMode](fieldValue, filterValue, filterLocale)) {
|
|
4386
4334
|
filteredItems.push(item);
|
|
4387
4335
|
break;
|
|
@@ -4399,7 +4347,6 @@ var FilterService = {
|
|
|
4399
4347
|
_iterator.f();
|
|
4400
4348
|
}
|
|
4401
4349
|
}
|
|
4402
|
-
|
|
4403
4350
|
return filteredItems;
|
|
4404
4351
|
},
|
|
4405
4352
|
filters: {
|
|
@@ -4407,11 +4354,9 @@ var FilterService = {
|
|
|
4407
4354
|
if (filter === undefined || filter === null || filter.trim() === '') {
|
|
4408
4355
|
return true;
|
|
4409
4356
|
}
|
|
4410
|
-
|
|
4411
4357
|
if (value === undefined || value === null) {
|
|
4412
4358
|
return false;
|
|
4413
4359
|
}
|
|
4414
|
-
|
|
4415
4360
|
var filterValue = ObjectUtils_ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
|
|
4416
4361
|
var stringValue = ObjectUtils_ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
|
|
4417
4362
|
return stringValue.slice(0, filterValue.length) === filterValue;
|
|
@@ -4420,11 +4365,9 @@ var FilterService = {
|
|
|
4420
4365
|
if (filter === undefined || filter === null || typeof filter === 'string' && filter.trim() === '') {
|
|
4421
4366
|
return true;
|
|
4422
4367
|
}
|
|
4423
|
-
|
|
4424
4368
|
if (value === undefined || value === null) {
|
|
4425
4369
|
return false;
|
|
4426
4370
|
}
|
|
4427
|
-
|
|
4428
4371
|
var filterValue = ObjectUtils_ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
|
|
4429
4372
|
var stringValue = ObjectUtils_ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
|
|
4430
4373
|
return stringValue.indexOf(filterValue) !== -1;
|
|
@@ -4433,11 +4376,9 @@ var FilterService = {
|
|
|
4433
4376
|
if (filter === undefined || filter === null || typeof filter === 'string' && filter.trim() === '') {
|
|
4434
4377
|
return true;
|
|
4435
4378
|
}
|
|
4436
|
-
|
|
4437
4379
|
if (value === undefined || value === null) {
|
|
4438
4380
|
return false;
|
|
4439
4381
|
}
|
|
4440
|
-
|
|
4441
4382
|
var filterValue = ObjectUtils_ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
|
|
4442
4383
|
var stringValue = ObjectUtils_ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
|
|
4443
4384
|
return stringValue.indexOf(filterValue) === -1;
|
|
@@ -4446,11 +4387,9 @@ var FilterService = {
|
|
|
4446
4387
|
if (filter === undefined || filter === null || filter.trim() === '') {
|
|
4447
4388
|
return true;
|
|
4448
4389
|
}
|
|
4449
|
-
|
|
4450
4390
|
if (value === undefined || value === null) {
|
|
4451
4391
|
return false;
|
|
4452
4392
|
}
|
|
4453
|
-
|
|
4454
4393
|
var filterValue = ObjectUtils_ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
|
|
4455
4394
|
var stringValue = ObjectUtils_ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
|
|
4456
4395
|
return stringValue.indexOf(filterValue, stringValue.length - filterValue.length) !== -1;
|
|
@@ -4459,134 +4398,110 @@ var FilterService = {
|
|
|
4459
4398
|
if (filter === undefined || filter === null || typeof filter === 'string' && filter.trim() === '') {
|
|
4460
4399
|
return true;
|
|
4461
4400
|
}
|
|
4462
|
-
|
|
4463
4401
|
if (value === undefined || value === null) {
|
|
4464
4402
|
return false;
|
|
4465
4403
|
}
|
|
4466
|
-
|
|
4467
4404
|
if (value.getTime && filter.getTime) return value.getTime() === filter.getTime();else return ObjectUtils_ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale) == ObjectUtils_ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
|
|
4468
4405
|
},
|
|
4469
4406
|
notEquals: function notEquals(value, filter, filterLocale) {
|
|
4470
4407
|
if (filter === undefined || filter === null || typeof filter === 'string' && filter.trim() === '') {
|
|
4471
4408
|
return false;
|
|
4472
4409
|
}
|
|
4473
|
-
|
|
4474
4410
|
if (value === undefined || value === null) {
|
|
4475
4411
|
return true;
|
|
4476
4412
|
}
|
|
4477
|
-
|
|
4478
4413
|
if (value.getTime && filter.getTime) return value.getTime() !== filter.getTime();else return ObjectUtils_ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale) != ObjectUtils_ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
|
|
4479
4414
|
},
|
|
4480
4415
|
in: function _in(value, filter) {
|
|
4481
4416
|
if (filter === undefined || filter === null || filter.length === 0) {
|
|
4482
4417
|
return true;
|
|
4483
4418
|
}
|
|
4484
|
-
|
|
4485
4419
|
for (var i = 0; i < filter.length; i++) {
|
|
4486
4420
|
if (ObjectUtils_ObjectUtils.equals(value, filter[i])) {
|
|
4487
4421
|
return true;
|
|
4488
4422
|
}
|
|
4489
4423
|
}
|
|
4490
|
-
|
|
4491
4424
|
return false;
|
|
4492
4425
|
},
|
|
4493
4426
|
between: function between(value, filter) {
|
|
4494
4427
|
if (filter == null || filter[0] == null || filter[1] == null) {
|
|
4495
4428
|
return true;
|
|
4496
4429
|
}
|
|
4497
|
-
|
|
4498
4430
|
if (value === undefined || value === null) {
|
|
4499
4431
|
return false;
|
|
4500
4432
|
}
|
|
4501
|
-
|
|
4502
4433
|
if (value.getTime) return filter[0].getTime() <= value.getTime() && value.getTime() <= filter[1].getTime();else return filter[0] <= value && value <= filter[1];
|
|
4503
4434
|
},
|
|
4504
4435
|
lt: function lt(value, filter) {
|
|
4505
4436
|
if (filter === undefined || filter === null) {
|
|
4506
4437
|
return true;
|
|
4507
4438
|
}
|
|
4508
|
-
|
|
4509
4439
|
if (value === undefined || value === null) {
|
|
4510
4440
|
return false;
|
|
4511
4441
|
}
|
|
4512
|
-
|
|
4513
4442
|
if (value.getTime && filter.getTime) return value.getTime() < filter.getTime();else return value < filter;
|
|
4514
4443
|
},
|
|
4515
4444
|
lte: function lte(value, filter) {
|
|
4516
4445
|
if (filter === undefined || filter === null) {
|
|
4517
4446
|
return true;
|
|
4518
4447
|
}
|
|
4519
|
-
|
|
4520
4448
|
if (value === undefined || value === null) {
|
|
4521
4449
|
return false;
|
|
4522
4450
|
}
|
|
4523
|
-
|
|
4524
4451
|
if (value.getTime && filter.getTime) return value.getTime() <= filter.getTime();else return value <= filter;
|
|
4525
4452
|
},
|
|
4526
4453
|
gt: function gt(value, filter) {
|
|
4527
4454
|
if (filter === undefined || filter === null) {
|
|
4528
4455
|
return true;
|
|
4529
4456
|
}
|
|
4530
|
-
|
|
4531
4457
|
if (value === undefined || value === null) {
|
|
4532
4458
|
return false;
|
|
4533
4459
|
}
|
|
4534
|
-
|
|
4535
4460
|
if (value.getTime && filter.getTime) return value.getTime() > filter.getTime();else return value > filter;
|
|
4536
4461
|
},
|
|
4537
4462
|
gte: function gte(value, filter) {
|
|
4538
4463
|
if (filter === undefined || filter === null) {
|
|
4539
4464
|
return true;
|
|
4540
4465
|
}
|
|
4541
|
-
|
|
4542
4466
|
if (value === undefined || value === null) {
|
|
4543
4467
|
return false;
|
|
4544
4468
|
}
|
|
4545
|
-
|
|
4546
4469
|
if (value.getTime && filter.getTime) return value.getTime() >= filter.getTime();else return value >= filter;
|
|
4547
4470
|
},
|
|
4548
4471
|
dateIs: function dateIs(value, filter) {
|
|
4549
4472
|
if (filter === undefined || filter === null) {
|
|
4550
4473
|
return true;
|
|
4551
4474
|
}
|
|
4552
|
-
|
|
4553
4475
|
if (value === undefined || value === null) {
|
|
4554
4476
|
return false;
|
|
4555
4477
|
}
|
|
4556
|
-
|
|
4557
4478
|
return value.toDateString() === filter.toDateString();
|
|
4558
4479
|
},
|
|
4559
4480
|
dateIsNot: function dateIsNot(value, filter) {
|
|
4560
4481
|
if (filter === undefined || filter === null) {
|
|
4561
4482
|
return true;
|
|
4562
4483
|
}
|
|
4563
|
-
|
|
4564
4484
|
if (value === undefined || value === null) {
|
|
4565
4485
|
return false;
|
|
4566
4486
|
}
|
|
4567
|
-
|
|
4568
4487
|
return value.toDateString() !== filter.toDateString();
|
|
4569
4488
|
},
|
|
4570
4489
|
dateBefore: function dateBefore(value, filter) {
|
|
4571
4490
|
if (filter === undefined || filter === null) {
|
|
4572
4491
|
return true;
|
|
4573
4492
|
}
|
|
4574
|
-
|
|
4575
4493
|
if (value === undefined || value === null) {
|
|
4576
4494
|
return false;
|
|
4577
4495
|
}
|
|
4578
|
-
|
|
4579
4496
|
return value.getTime() < filter.getTime();
|
|
4580
4497
|
},
|
|
4581
4498
|
dateAfter: function dateAfter(value, filter) {
|
|
4582
4499
|
if (filter === undefined || filter === null) {
|
|
4583
4500
|
return true;
|
|
4584
4501
|
}
|
|
4585
|
-
|
|
4586
4502
|
if (value === undefined || value === null) {
|
|
4587
4503
|
return false;
|
|
4588
4504
|
}
|
|
4589
|
-
|
|
4590
4505
|
return value.getTime() > filter.getTime();
|
|
4591
4506
|
}
|
|
4592
4507
|
},
|