primevue 3.32.0 → 3.32.2
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/accordion/Accordion.d.ts +2 -2
- package/accordiontab/AccordionTab.d.ts +4 -3
- package/autocomplete/AutoComplete.d.ts +17 -7
- package/autocomplete/AutoComplete.vue +2 -2
- package/autocomplete/autocomplete.cjs.js +3 -2
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +3 -2
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +3 -2
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +2 -2
- package/avatargroup/AvatarGroup.d.ts +2 -2
- package/badge/Badge.d.ts +2 -2
- package/badgedirective/BadgeDirective.d.ts +2 -1
- package/basecomponent/BaseComponent.vue +67 -12
- package/basecomponent/basecomponent.cjs.js +76 -22
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +76 -22
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +76 -22
- package/basecomponent/basecomponent.min.js +1 -1
- package/basedirective/basedirective.cjs.js +47 -7
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +47 -7
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +47 -7
- package/basedirective/basedirective.min.js +1 -1
- package/baseicon/BaseIcon.vue +44 -32
- package/baseicon/baseicon.cjs.js +19 -30
- package/baseicon/baseicon.cjs.min.js +1 -1
- package/baseicon/baseicon.esm.js +19 -30
- package/baseicon/baseicon.esm.min.js +1 -1
- package/baseicon/baseicon.js +20 -32
- package/baseicon/baseicon.min.js +1 -1
- package/blockui/BlockUI.d.ts +2 -2
- package/breadcrumb/Breadcrumb.d.ts +2 -2
- package/button/Button.d.ts +2 -2
- package/button/Button.vue +2 -2
- package/button/button.cjs.js +2 -2
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +2 -2
- package/button/button.esm.min.js +1 -1
- package/button/button.js +2 -2
- package/button/button.min.js +1 -1
- package/calendar/Calendar.d.ts +30 -6
- package/calendar/Calendar.vue +9 -8
- package/calendar/calendar.cjs.js +19 -10
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +19 -10
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +19 -10
- package/calendar/calendar.min.js +1 -1
- package/card/Card.d.ts +2 -2
- package/carousel/Carousel.d.ts +2 -2
- package/carousel/Carousel.vue +2 -1
- package/carousel/carousel.cjs.js +4 -3
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +4 -3
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +4 -3
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +2 -2
- package/chart/Chart.d.ts +2 -2
- package/checkbox/Checkbox.d.ts +2 -2
- package/chip/Chip.d.ts +6 -4
- package/chips/Chips.d.ts +13 -4
- package/chips/Chips.vue +1 -1
- package/chips/chips.cjs.js +1 -0
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +1 -0
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +1 -0
- package/chips/chips.min.js +1 -1
- package/colorpicker/ColorPicker.d.ts +2 -2
- package/colorpicker/ColorPicker.vue +1 -40
- package/colorpicker/colorpicker.cjs.js +8 -47
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +8 -47
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +8 -47
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/Column.d.ts +13 -10
- package/columngroup/ColumnGroup.d.ts +2 -2
- package/config/PrimeVue.d.ts +2 -2
- package/confirmdialog/ConfirmDialog.d.ts +3 -2
- package/confirmpopup/ConfirmPopup.d.ts +3 -2
- package/contextmenu/ContextMenu.d.ts +3 -2
- package/core/core.js +551 -489
- package/core/core.min.js +10 -10
- package/datatable/BodyCell.vue +2 -0
- package/datatable/DataTable.d.ts +4 -2
- package/datatable/DataTable.vue +45 -15
- package/datatable/TableBody.vue +1 -1
- package/datatable/datatable.cjs.js +119 -74
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +119 -74
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +119 -74
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +2 -2
- package/dataview/DataView.vue +2 -1
- package/dataview/dataview.cjs.js +4 -3
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +4 -3
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +4 -3
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +2 -2
- package/deferredcontent/DeferredContent.d.ts +2 -2
- package/dialog/Dialog.d.ts +13 -3
- package/dialog/Dialog.vue +10 -7
- package/dialog/dialog.cjs.js +13 -7
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +14 -8
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +13 -7
- package/dialog/dialog.min.js +1 -1
- package/divider/Divider.d.ts +2 -2
- package/dock/Dock.d.ts +2 -2
- package/dropdown/Dropdown.d.ts +21 -10
- package/dropdown/Dropdown.vue +9 -0
- package/dropdown/dropdown.cjs.js +8 -0
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +8 -0
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +8 -0
- package/dropdown/dropdown.min.js +1 -1
- package/editor/BaseEditor.vue +8 -6
- package/editor/Editor.d.ts +2 -2
- package/editor/editor.cjs.js +8 -6
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +8 -6
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +8 -6
- package/editor/editor.min.js +1 -1
- package/fieldset/Fieldset.d.ts +2 -2
- package/fileupload/FileUpload.d.ts +12 -7
- package/fileupload/FileUpload.vue +4 -0
- package/fileupload/fileupload.cjs.js +4 -0
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +4 -0
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +5 -2
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/FocusTrap.d.ts +2 -1
- package/galleria/Galleria.d.ts +2 -2
- package/galleria/GalleriaItem.vue +2 -2
- package/galleria/GalleriaThumbnails.vue +5 -1
- package/galleria/galleria.cjs.js +16 -7
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +16 -7
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +16 -7
- package/galleria/galleria.min.js +1 -1
- package/image/Image.d.ts +6 -4
- package/image/Image.vue +8 -6
- package/image/image.cjs.js +18 -5
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +19 -6
- package/image/image.esm.min.js +1 -1
- package/image/image.js +18 -5
- package/image/image.min.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +2 -2
- package/inplace/Inplace.d.ts +2 -2
- package/inputmask/InputMask.d.ts +2 -2
- package/inputnumber/InputNumber.d.ts +2 -2
- package/inputnumber/InputNumber.vue +1 -0
- package/inputnumber/inputnumber.cjs.js +1 -0
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +1 -0
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +1 -0
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/InputSwitch.d.ts +2 -2
- package/inputtext/InputText.d.ts +2 -2
- package/knob/Knob.d.ts +2 -2
- package/listbox/Listbox.d.ts +11 -5
- package/megamenu/MegaMenu.d.ts +3 -2
- package/menu/Menu.d.ts +2 -2
- package/menubar/Menubar.d.ts +3 -2
- package/message/BaseMessage.vue +5 -0
- package/message/Message.d.ts +4 -2
- package/message/message.cjs.js +1 -1
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +1 -1
- package/message/message.esm.min.js +1 -1
- package/message/message.js +1 -1
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +16 -6
- package/multiselect/MultiSelect.vue +1 -1
- package/multiselect/multiselect.cjs.js +1 -0
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +1 -0
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +1 -0
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +2 -2
- package/organizationchart/OrganizationChart.d.ts +2 -2
- package/overlaypanel/OverlayPanel.d.ts +2 -2
- package/package.json +9 -4
- package/paginator/Paginator.d.ts +2 -2
- package/panel/Panel.d.ts +3 -2
- package/panelmenu/PanelMenu.d.ts +3 -2
- package/passthrough/index.cjs.js +16 -60
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.d.ts +0 -9
- package/passthrough/index.esm.js +16 -60
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +18 -59
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +365 -359
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.d.ts +1 -2
- package/passthrough/tailwind/index.esm.js +365 -359
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +365 -359
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/Password.d.ts +6 -4
- package/password/Password.vue +1 -0
- package/password/password.cjs.js +2 -1
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +2 -1
- package/password/password.esm.min.js +1 -1
- package/password/password.js +2 -1
- package/password/password.min.js +1 -1
- package/picklist/PickList.d.ts +2 -2
- package/picklist/PickList.vue +9 -7
- package/picklist/picklist.cjs.js +27 -9
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +27 -9
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +27 -9
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +2 -2
- package/progressspinner/ProgressSpinner.d.ts +2 -2
- package/radiobutton/RadioButton.d.ts +2 -2
- package/rating/Rating.d.ts +3 -2
- package/resources/themes/arya-blue/theme.css +4 -4
- package/resources/themes/arya-green/theme.css +4 -4
- package/resources/themes/arya-orange/theme.css +4 -4
- package/resources/themes/arya-purple/theme.css +4 -4
- package/resources/themes/bootstrap4-dark-blue/theme.css +8 -11
- package/resources/themes/bootstrap4-dark-purple/theme.css +8 -11
- package/resources/themes/bootstrap4-light-blue/theme.css +8 -11
- package/resources/themes/bootstrap4-light-purple/theme.css +8 -11
- package/resources/themes/fluent-light/theme.css +4 -4
- package/resources/themes/lara-dark-blue/theme.css +4 -4
- package/resources/themes/lara-dark-indigo/theme.css +4 -4
- package/resources/themes/lara-dark-purple/theme.css +4 -4
- package/resources/themes/lara-dark-teal/theme.css +4 -4
- package/resources/themes/lara-light-blue/theme.css +4 -4
- package/resources/themes/lara-light-indigo/theme.css +4 -4
- package/resources/themes/lara-light-purple/theme.css +4 -4
- package/resources/themes/lara-light-teal/theme.css +4 -4
- package/resources/themes/luna-amber/theme.css +4 -4
- package/resources/themes/luna-blue/theme.css +4 -4
- package/resources/themes/luna-green/theme.css +4 -4
- package/resources/themes/luna-pink/theme.css +4 -4
- package/resources/themes/md-dark-deeppurple/theme.css +4 -4
- package/resources/themes/md-dark-indigo/theme.css +4 -4
- package/resources/themes/md-light-deeppurple/theme.css +4 -4
- package/resources/themes/md-light-indigo/theme.css +4 -4
- package/resources/themes/mdc-dark-deeppurple/theme.css +4 -4
- package/resources/themes/mdc-dark-indigo/theme.css +4 -4
- package/resources/themes/mdc-light-deeppurple/theme.css +4 -4
- package/resources/themes/mdc-light-indigo/theme.css +4 -4
- package/resources/themes/mira/theme.css +4 -4
- package/resources/themes/nano/theme.css +4 -4
- package/resources/themes/nova/theme.css +4 -4
- package/resources/themes/nova-accent/theme.css +4 -4
- package/resources/themes/nova-alt/theme.css +4 -4
- package/resources/themes/nova-vue/theme.css +4 -4
- package/resources/themes/rhea/theme.css +4 -4
- package/resources/themes/saga-blue/theme.css +4 -4
- package/resources/themes/saga-green/theme.css +4 -4
- package/resources/themes/saga-orange/theme.css +4 -4
- package/resources/themes/saga-purple/theme.css +4 -4
- package/resources/themes/soho-dark/theme.css +4 -4
- package/resources/themes/soho-light/theme.css +4 -4
- package/resources/themes/tailwind-light/theme.css +4 -4
- package/resources/themes/vela-blue/theme.css +4 -4
- package/resources/themes/vela-green/theme.css +4 -4
- package/resources/themes/vela-orange/theme.css +4 -4
- package/resources/themes/vela-purple/theme.css +4 -4
- package/resources/themes/viva-dark/theme.css +4 -4
- package/resources/themes/viva-light/theme.css +4 -4
- package/ripple/Ripple.d.ts +2 -1
- package/scrollpanel/ScrollPanel.d.ts +2 -2
- package/scrolltop/ScrollTop.d.ts +2 -2
- package/selectbutton/SelectButton.d.ts +6 -2
- package/selectbutton/SelectButton.vue +2 -1
- package/selectbutton/selectbutton.cjs.js +2 -1
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +2 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +2 -1
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/Sidebar.d.ts +10 -4
- package/sidebar/Sidebar.vue +2 -2
- package/sidebar/sidebar.cjs.js +4 -2
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +5 -3
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +4 -2
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/Skeleton.d.ts +2 -2
- package/slider/Slider.d.ts +2 -2
- package/speeddial/SpeedDial.d.ts +9 -7
- package/speeddial/SpeedDial.vue +1 -1
- package/speeddial/speeddial.cjs.js +1 -1
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +1 -1
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +1 -1
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +4 -2
- package/splitter/Splitter.d.ts +2 -2
- package/splitterpanel/SplitterPanel.d.ts +2 -2
- package/steps/Steps.d.ts +2 -2
- package/styleclass/StyleClass.d.ts +2 -1
- package/tabmenu/TabMenu.d.ts +2 -2
- package/tabpanel/TabPanel.d.ts +2 -2
- package/tabview/TabView.d.ts +2 -2
- package/tag/Tag.d.ts +2 -2
- package/terminal/Terminal.d.ts +2 -2
- package/textarea/Textarea.d.ts +2 -2
- package/tieredmenu/TieredMenu.d.ts +3 -2
- package/timeline/Timeline.d.ts +2 -2
- package/toast/BaseToast.vue +2 -0
- package/toast/Toast.d.ts +16 -4
- package/toast/toast.cjs.js +1 -1
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +1 -1
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +1 -1
- package/toast/toast.min.js +1 -1
- package/togglebutton/ToggleButton.d.ts +3 -2
- package/toolbar/Toolbar.d.ts +2 -2
- package/tooltip/Tooltip.d.ts +2 -1
- package/tree/Tree.d.ts +6 -2
- package/treeselect/TreeSelect.d.ts +3 -2
- package/treetable/TreeTable.d.ts +3 -2
- package/treetable/TreeTable.vue +4 -2
- package/treetable/treetable.cjs.js +6 -5
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +6 -5
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +6 -5
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +5 -2
- package/ts-helpers.d.ts +2 -0
- package/virtualscroller/VirtualScroller.d.ts +8 -6
- package/web-types.json +1 -1
package/datatable/datatable.js
CHANGED
|
@@ -1246,7 +1246,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1246
1246
|
function _defineProperty$9(obj, key, value) { key = _toPropertyKey$9(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1247
1247
|
function _toPropertyKey$9(arg) { var key = _toPrimitive$9(arg, "string"); return _typeof$9(key) === "symbol" ? key : String(key); }
|
|
1248
1248
|
function _toPrimitive$9(input, hint) { if (_typeof$9(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$9(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1249
|
-
var _hoisted_1$5 = ["data-p-selection-column", "data-p-editable-column", "data-p-cell-editing", "data-p-frozen-column"];
|
|
1249
|
+
var _hoisted_1$5 = ["colspan", "rowspan", "data-p-selection-column", "data-p-editable-column", "data-p-cell-editing", "data-p-frozen-column"];
|
|
1250
1250
|
var _hoisted_2$2 = ["aria-expanded", "aria-controls", "aria-label"];
|
|
1251
1251
|
var _hoisted_3$2 = ["aria-label"];
|
|
1252
1252
|
var _hoisted_4$1 = ["aria-label"];
|
|
@@ -1274,6 +1274,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1274
1274
|
key: 1,
|
|
1275
1275
|
style: $options.containerStyle,
|
|
1276
1276
|
"class": $options.containerClass,
|
|
1277
|
+
colspan: $options.columnProp('colspan'),
|
|
1278
|
+
rowspan: $options.columnProp('rowspan'),
|
|
1277
1279
|
onClick: _cache[6] || (_cache[6] = function () {
|
|
1278
1280
|
return $options.onClick && $options.onClick.apply($options, arguments);
|
|
1279
1281
|
}),
|
|
@@ -1616,7 +1618,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1616
1618
|
},
|
|
1617
1619
|
getRowIndex: function getRowIndex(index) {
|
|
1618
1620
|
var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
|
|
1619
|
-
return getItemOptions ? getItemOptions(index).index :
|
|
1621
|
+
return getItemOptions ? getItemOptions(index).index : index;
|
|
1620
1622
|
},
|
|
1621
1623
|
getRowStyle: function getRowStyle(rowData) {
|
|
1622
1624
|
if (this.rowStyle) {
|
|
@@ -4102,15 +4104,15 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4102
4104
|
script$1.render = render$1;
|
|
4103
4105
|
|
|
4104
4106
|
function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$1(obj); }
|
|
4105
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4106
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4107
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
4108
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
4109
4107
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4110
4108
|
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4111
4109
|
function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4112
4110
|
function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
|
|
4113
4111
|
function _toPrimitive$1(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4112
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4113
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4114
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
4115
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
4114
4116
|
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(_e2) { throw _e2; }, 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(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
4115
4117
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4116
4118
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -4248,7 +4250,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4248
4250
|
if (this.columnProp(column, 'sortable')) {
|
|
4249
4251
|
var targetNode = event.target;
|
|
4250
4252
|
var columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
|
|
4251
|
-
if (utils.DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' || targetNode.closest('[data-p-sortable-column="true"]')) {
|
|
4253
|
+
if (utils.DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' || targetNode.closest('[data-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="filtermenubutton"]')) {
|
|
4252
4254
|
utils.DomHandler.clearSelection();
|
|
4253
4255
|
if (this.sortMode === 'single') {
|
|
4254
4256
|
if (this.d_sortField === columnField) {
|
|
@@ -4294,13 +4296,27 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4294
4296
|
return this.sortMultiple(value);
|
|
4295
4297
|
}
|
|
4296
4298
|
var data = _toConsumableArray(value);
|
|
4299
|
+
var resolvedFieldDatas = new Map();
|
|
4300
|
+
var _iterator = _createForOfIteratorHelper(data),
|
|
4301
|
+
_step;
|
|
4302
|
+
try {
|
|
4303
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
4304
|
+
var item = _step.value;
|
|
4305
|
+
resolvedFieldDatas.set(item, utils.ObjectUtils.resolveFieldData(item, this.d_sortField));
|
|
4306
|
+
}
|
|
4307
|
+
} catch (err) {
|
|
4308
|
+
_iterator.e(err);
|
|
4309
|
+
} finally {
|
|
4310
|
+
_iterator.f();
|
|
4311
|
+
}
|
|
4312
|
+
var comparer = new Intl.Collator(undefined, {
|
|
4313
|
+
numeric: true
|
|
4314
|
+
}).compare;
|
|
4297
4315
|
data.sort(function (data1, data2) {
|
|
4298
|
-
var value1 =
|
|
4299
|
-
var value2 =
|
|
4316
|
+
var value1 = resolvedFieldDatas.get(data1);
|
|
4317
|
+
var value2 = resolvedFieldDatas.get(data2);
|
|
4300
4318
|
var result = null;
|
|
4301
|
-
if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1
|
|
4302
|
-
numeric: true
|
|
4303
|
-
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
4319
|
+
if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = comparer(value1, value2);else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
4304
4320
|
return _this.d_sortOrder * result;
|
|
4305
4321
|
});
|
|
4306
4322
|
return data;
|
|
@@ -4327,9 +4343,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4327
4343
|
var result = null;
|
|
4328
4344
|
if (typeof value1 === 'string' || value1 instanceof String) {
|
|
4329
4345
|
if (value1.localeCompare && value1 !== value2) {
|
|
4330
|
-
|
|
4346
|
+
var comparer = new Intl.Collator(undefined, {
|
|
4331
4347
|
numeric: true
|
|
4332
|
-
});
|
|
4348
|
+
}).compare;
|
|
4349
|
+
return this.d_multiSortMeta[index].order * comparer(value1, value2);
|
|
4333
4350
|
}
|
|
4334
4351
|
} else {
|
|
4335
4352
|
result = value1 < value2 ? -1 : 1;
|
|
@@ -4356,14 +4373,40 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4356
4373
|
}
|
|
4357
4374
|
this.d_multiSortMeta = _toConsumableArray(this.d_multiSortMeta);
|
|
4358
4375
|
},
|
|
4376
|
+
getActiveFilters: function getActiveFilters(filters) {
|
|
4377
|
+
var removeEmptyFilters = function removeEmptyFilters(_ref) {
|
|
4378
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
4379
|
+
key = _ref2[0],
|
|
4380
|
+
value = _ref2[1];
|
|
4381
|
+
if (value.constraints) {
|
|
4382
|
+
var filteredConstraints = value.constraints.filter(function (constraint) {
|
|
4383
|
+
return constraint.value !== null;
|
|
4384
|
+
});
|
|
4385
|
+
if (filteredConstraints.length > 0) {
|
|
4386
|
+
return [key, _objectSpread$1(_objectSpread$1({}, value), {}, {
|
|
4387
|
+
constraints: filteredConstraints
|
|
4388
|
+
})];
|
|
4389
|
+
}
|
|
4390
|
+
} else if (value.value !== null) {
|
|
4391
|
+
return [key, value];
|
|
4392
|
+
}
|
|
4393
|
+
return undefined;
|
|
4394
|
+
};
|
|
4395
|
+
var filterValidEntries = function filterValidEntries(entry) {
|
|
4396
|
+
return entry !== undefined;
|
|
4397
|
+
};
|
|
4398
|
+
var entries = Object.entries(filters).map(removeEmptyFilters).filter(filterValidEntries);
|
|
4399
|
+
return Object.fromEntries(entries);
|
|
4400
|
+
},
|
|
4359
4401
|
filter: function filter(data) {
|
|
4360
4402
|
var _this3 = this;
|
|
4361
4403
|
if (!data) {
|
|
4362
4404
|
return;
|
|
4363
4405
|
}
|
|
4364
4406
|
this.clearEditingMetaData();
|
|
4407
|
+
var activeFilters = this.getActiveFilters(this.filters);
|
|
4365
4408
|
var globalFilterFieldsArray;
|
|
4366
|
-
if (
|
|
4409
|
+
if (activeFilters['global']) {
|
|
4367
4410
|
globalFilterFieldsArray = this.globalFilterFields || this.columns.map(function (col) {
|
|
4368
4411
|
return _this3.columnProp(col, 'filterField') || _this3.columnProp(col, 'field');
|
|
4369
4412
|
});
|
|
@@ -4373,26 +4416,26 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4373
4416
|
var localMatch = true;
|
|
4374
4417
|
var globalMatch = false;
|
|
4375
4418
|
var localFiltered = false;
|
|
4376
|
-
for (var prop in
|
|
4377
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4419
|
+
for (var prop in activeFilters) {
|
|
4420
|
+
if (Object.prototype.hasOwnProperty.call(activeFilters, prop) && prop !== 'global') {
|
|
4378
4421
|
localFiltered = true;
|
|
4379
4422
|
var filterField = prop;
|
|
4380
|
-
var filterMeta =
|
|
4423
|
+
var filterMeta = activeFilters[filterField];
|
|
4381
4424
|
if (filterMeta.operator) {
|
|
4382
|
-
var
|
|
4383
|
-
|
|
4425
|
+
var _iterator2 = _createForOfIteratorHelper(filterMeta.constraints),
|
|
4426
|
+
_step2;
|
|
4384
4427
|
try {
|
|
4385
|
-
for (
|
|
4386
|
-
var filterConstraint =
|
|
4428
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
4429
|
+
var filterConstraint = _step2.value;
|
|
4387
4430
|
localMatch = this.executeLocalFilter(filterField, data[i], filterConstraint);
|
|
4388
4431
|
if (filterMeta.operator === api.FilterOperator.OR && localMatch || filterMeta.operator === api.FilterOperator.AND && !localMatch) {
|
|
4389
4432
|
break;
|
|
4390
4433
|
}
|
|
4391
4434
|
}
|
|
4392
4435
|
} catch (err) {
|
|
4393
|
-
|
|
4436
|
+
_iterator2.e(err);
|
|
4394
4437
|
} finally {
|
|
4395
|
-
|
|
4438
|
+
_iterator2.f();
|
|
4396
4439
|
}
|
|
4397
4440
|
} else {
|
|
4398
4441
|
localMatch = this.executeLocalFilter(filterField, data[i], filterMeta);
|
|
@@ -4402,17 +4445,17 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4402
4445
|
}
|
|
4403
4446
|
}
|
|
4404
4447
|
}
|
|
4405
|
-
if (
|
|
4448
|
+
if (localMatch && activeFilters['global'] && !globalMatch && globalFilterFieldsArray) {
|
|
4406
4449
|
for (var j = 0; j < globalFilterFieldsArray.length; j++) {
|
|
4407
4450
|
var globalFilterField = globalFilterFieldsArray[j];
|
|
4408
|
-
globalMatch = api.FilterService.filters[
|
|
4451
|
+
globalMatch = api.FilterService.filters[activeFilters['global'].matchMode || api.FilterMatchMode.CONTAINS](utils.ObjectUtils.resolveFieldData(data[i], globalFilterField), activeFilters['global'].value, this.filterLocale);
|
|
4409
4452
|
if (globalMatch) {
|
|
4410
4453
|
break;
|
|
4411
4454
|
}
|
|
4412
4455
|
}
|
|
4413
4456
|
}
|
|
4414
4457
|
var matches = void 0;
|
|
4415
|
-
if (
|
|
4458
|
+
if (activeFilters['global']) {
|
|
4416
4459
|
matches = localFiltered ? localFiltered && localMatch && globalMatch : globalMatch;
|
|
4417
4460
|
} else {
|
|
4418
4461
|
matches = localFiltered && localMatch;
|
|
@@ -4421,7 +4464,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4421
4464
|
filteredValue.push(data[i]);
|
|
4422
4465
|
}
|
|
4423
4466
|
}
|
|
4424
|
-
if (filteredValue.length === this.value.length) {
|
|
4467
|
+
if (filteredValue.length === this.value.length || Object.keys(activeFilters).length == 0) {
|
|
4425
4468
|
filteredValue = data;
|
|
4426
4469
|
}
|
|
4427
4470
|
var filterEvent = this.createLazyLoadEvent();
|
|
@@ -4815,17 +4858,17 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4815
4858
|
updateSelectionKeys: function updateSelectionKeys(selection) {
|
|
4816
4859
|
this.d_selectionKeys = {};
|
|
4817
4860
|
if (Array.isArray(selection)) {
|
|
4818
|
-
var
|
|
4819
|
-
|
|
4861
|
+
var _iterator3 = _createForOfIteratorHelper(selection),
|
|
4862
|
+
_step3;
|
|
4820
4863
|
try {
|
|
4821
|
-
for (
|
|
4822
|
-
var data =
|
|
4864
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
4865
|
+
var data = _step3.value;
|
|
4823
4866
|
this.d_selectionKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
4824
4867
|
}
|
|
4825
4868
|
} catch (err) {
|
|
4826
|
-
|
|
4869
|
+
_iterator3.e(err);
|
|
4827
4870
|
} finally {
|
|
4828
|
-
|
|
4871
|
+
_iterator3.f();
|
|
4829
4872
|
}
|
|
4830
4873
|
} else {
|
|
4831
4874
|
this.d_selectionKeys[String(utils.ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
|
|
@@ -4834,17 +4877,17 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4834
4877
|
updateExpandedRowKeys: function updateExpandedRowKeys(expandedRows) {
|
|
4835
4878
|
if (expandedRows && expandedRows.length) {
|
|
4836
4879
|
this.d_expandedRowKeys = {};
|
|
4837
|
-
var
|
|
4838
|
-
|
|
4880
|
+
var _iterator4 = _createForOfIteratorHelper(expandedRows),
|
|
4881
|
+
_step4;
|
|
4839
4882
|
try {
|
|
4840
|
-
for (
|
|
4841
|
-
var data =
|
|
4883
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
4884
|
+
var data = _step4.value;
|
|
4842
4885
|
this.d_expandedRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
4843
4886
|
}
|
|
4844
4887
|
} catch (err) {
|
|
4845
|
-
|
|
4888
|
+
_iterator4.e(err);
|
|
4846
4889
|
} finally {
|
|
4847
|
-
|
|
4890
|
+
_iterator4.f();
|
|
4848
4891
|
}
|
|
4849
4892
|
} else {
|
|
4850
4893
|
this.d_expandedRowKeys = null;
|
|
@@ -4853,17 +4896,17 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4853
4896
|
updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
|
|
4854
4897
|
if (editingRows && editingRows.length) {
|
|
4855
4898
|
this.d_editingRowKeys = {};
|
|
4856
|
-
var
|
|
4857
|
-
|
|
4899
|
+
var _iterator5 = _createForOfIteratorHelper(editingRows),
|
|
4900
|
+
_step5;
|
|
4858
4901
|
try {
|
|
4859
|
-
for (
|
|
4860
|
-
var data =
|
|
4902
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
4903
|
+
var data = _step5.value;
|
|
4861
4904
|
this.d_editingRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
4862
4905
|
}
|
|
4863
4906
|
} catch (err) {
|
|
4864
|
-
|
|
4907
|
+
_iterator5.e(err);
|
|
4865
4908
|
} finally {
|
|
4866
|
-
|
|
4909
|
+
_iterator5.f();
|
|
4867
4910
|
}
|
|
4868
4911
|
} else {
|
|
4869
4912
|
this.d_editingRowKeys = null;
|
|
@@ -4924,8 +4967,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4924
4967
|
data.forEach(function (record) {
|
|
4925
4968
|
csv += '\n';
|
|
4926
4969
|
var rowInitiated = false;
|
|
4927
|
-
for (var
|
|
4928
|
-
var _column = _this4.columns[
|
|
4970
|
+
for (var _i2 = 0; _i2 < _this4.columns.length; _i2++) {
|
|
4971
|
+
var _column = _this4.columns[_i2];
|
|
4929
4972
|
if (_this4.columnProp(_column, 'exportable') !== false && _this4.columnProp(_column, 'field')) {
|
|
4930
4973
|
if (rowInitiated) csv += _this4.csvSeparator;else rowInitiated = true;
|
|
4931
4974
|
var cellData = utils.ObjectUtils.resolveFieldData(record, _this4.columnProp(_column, 'field'));
|
|
@@ -4945,9 +4988,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4945
4988
|
|
|
4946
4989
|
//footers
|
|
4947
4990
|
var footerInitiated = false;
|
|
4948
|
-
for (var
|
|
4949
|
-
var _column2 = this.columns[
|
|
4950
|
-
if (
|
|
4991
|
+
for (var _i3 = 0; _i3 < this.columns.length; _i3++) {
|
|
4992
|
+
var _column2 = this.columns[_i3];
|
|
4993
|
+
if (_i3 === 0) csv += '\n';
|
|
4951
4994
|
if (this.columnProp(_column2, 'exportable') !== false && this.columnProp(_column2, 'exportFooter')) {
|
|
4952
4995
|
if (footerInitiated) csv += this.csvSeparator;else footerInitiated = true;
|
|
4953
4996
|
csv += '"' + (this.columnProp(_column2, 'exportFooter') || this.columnProp(_column2, 'footer') || this.columnProp(_column2, 'field')) + '"';
|
|
@@ -4992,6 +5035,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4992
5035
|
var updateTableWidth = function updateTableWidth(el) {
|
|
4993
5036
|
!!el && (el.style.width = el.style.minWidth = tableWidth);
|
|
4994
5037
|
};
|
|
5038
|
+
|
|
5039
|
+
// Reasoning: resize table cells before updating the table width so that it can use existing computed cell widths and adjust only the one column.
|
|
5040
|
+
this.resizeTableCells(newColumnWidth);
|
|
4995
5041
|
updateTableWidth(this.$refs.table);
|
|
4996
5042
|
if (!this.virtualScrollerDisabled) {
|
|
4997
5043
|
var body = this.$refs.bodyRef && this.$refs.bodyRef.$el;
|
|
@@ -4999,7 +5045,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4999
5045
|
updateTableWidth(body);
|
|
5000
5046
|
updateTableWidth(frozenBody);
|
|
5001
5047
|
}
|
|
5002
|
-
this.resizeTableCells(newColumnWidth);
|
|
5003
5048
|
}
|
|
5004
5049
|
this.$emit('column-resize-end', {
|
|
5005
5050
|
element: this.resizeColumnElement,
|
|
@@ -5507,10 +5552,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5507
5552
|
cloneFilters: function cloneFilters() {
|
|
5508
5553
|
var cloned = {};
|
|
5509
5554
|
if (this.filters) {
|
|
5510
|
-
Object.entries(this.filters).forEach(function (
|
|
5511
|
-
var
|
|
5512
|
-
prop =
|
|
5513
|
-
value =
|
|
5555
|
+
Object.entries(this.filters).forEach(function (_ref3) {
|
|
5556
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
5557
|
+
prop = _ref4[0],
|
|
5558
|
+
value = _ref4[1];
|
|
5514
5559
|
cloned[prop] = value.operator ? {
|
|
5515
5560
|
operator: value.operator,
|
|
5516
5561
|
constraints: value.constraints.map(function (constraint) {
|
|
@@ -5602,20 +5647,20 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5602
5647
|
var cols = this.recursiveGetChildren(children, []);
|
|
5603
5648
|
if (this.reorderableColumns && this.d_columnOrder) {
|
|
5604
5649
|
var orderedColumns = [];
|
|
5605
|
-
var
|
|
5606
|
-
|
|
5650
|
+
var _iterator6 = _createForOfIteratorHelper(this.d_columnOrder),
|
|
5651
|
+
_step6;
|
|
5607
5652
|
try {
|
|
5608
|
-
for (
|
|
5609
|
-
var columnKey =
|
|
5653
|
+
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
5654
|
+
var columnKey = _step6.value;
|
|
5610
5655
|
var column = this.findColumnByKey(cols, columnKey);
|
|
5611
5656
|
if (column && !this.columnProp(column, 'hidden')) {
|
|
5612
5657
|
orderedColumns.push(column);
|
|
5613
5658
|
}
|
|
5614
5659
|
}
|
|
5615
5660
|
} catch (err) {
|
|
5616
|
-
|
|
5661
|
+
_iterator6.e(err);
|
|
5617
5662
|
} finally {
|
|
5618
|
-
|
|
5663
|
+
_iterator6.f();
|
|
5619
5664
|
}
|
|
5620
5665
|
return [].concat(orderedColumns, _toConsumableArray(cols.filter(function (item) {
|
|
5621
5666
|
return orderedColumns.indexOf(item) < 0;
|
|
@@ -5626,19 +5671,19 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5626
5671
|
headerColumnGroup: function headerColumnGroup() {
|
|
5627
5672
|
var children = this.getChildren();
|
|
5628
5673
|
if (children) {
|
|
5629
|
-
var
|
|
5630
|
-
|
|
5674
|
+
var _iterator7 = _createForOfIteratorHelper(children),
|
|
5675
|
+
_step7;
|
|
5631
5676
|
try {
|
|
5632
|
-
for (
|
|
5633
|
-
var child =
|
|
5677
|
+
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
5678
|
+
var child = _step7.value;
|
|
5634
5679
|
if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'header') {
|
|
5635
5680
|
return child;
|
|
5636
5681
|
}
|
|
5637
5682
|
}
|
|
5638
5683
|
} catch (err) {
|
|
5639
|
-
|
|
5684
|
+
_iterator7.e(err);
|
|
5640
5685
|
} finally {
|
|
5641
|
-
|
|
5686
|
+
_iterator7.f();
|
|
5642
5687
|
}
|
|
5643
5688
|
}
|
|
5644
5689
|
return null;
|
|
@@ -5646,19 +5691,19 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5646
5691
|
footerColumnGroup: function footerColumnGroup() {
|
|
5647
5692
|
var children = this.getChildren();
|
|
5648
5693
|
if (children) {
|
|
5649
|
-
var
|
|
5650
|
-
|
|
5694
|
+
var _iterator8 = _createForOfIteratorHelper(children),
|
|
5695
|
+
_step8;
|
|
5651
5696
|
try {
|
|
5652
|
-
for (
|
|
5653
|
-
var child =
|
|
5697
|
+
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
5698
|
+
var child = _step8.value;
|
|
5654
5699
|
if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'footer') {
|
|
5655
5700
|
return child;
|
|
5656
5701
|
}
|
|
5657
5702
|
}
|
|
5658
5703
|
} catch (err) {
|
|
5659
|
-
|
|
5704
|
+
_iterator8.e(err);
|
|
5660
5705
|
} finally {
|
|
5661
|
-
|
|
5706
|
+
_iterator8.f();
|
|
5662
5707
|
}
|
|
5663
5708
|
}
|
|
5664
5709
|
return null;
|