primevue 3.30.0 → 3.30.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/README.md +4 -2
- package/accordion/Accordion.d.ts +6 -1
- package/accordion/Accordion.vue +2 -1
- package/accordion/accordion.cjs.js +5 -9
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +5 -9
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +6 -10
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +1 -1
- package/autocomplete/AutoComplete.d.ts +1 -1
- package/avatar/Avatar.d.ts +1 -1
- package/badge/Badge.d.ts +1 -1
- package/basecomponent/BaseComponent.vue +12 -16
- package/basecomponent/basecomponent.cjs.js +18 -6
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +18 -6
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +18 -6
- package/basecomponent/basecomponent.min.js +1 -1
- package/basedirective/basedirective.cjs.js +8 -2
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +8 -2
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +8 -2
- package/basedirective/basedirective.min.js +1 -1
- package/blockui/BlockUI.d.ts +1 -1
- package/breadcrumb/Breadcrumb.d.ts +1 -1
- package/button/Button.d.ts +1 -1
- package/calendar/Calendar.d.ts +1 -1
- package/carousel/Carousel.d.ts +1 -1
- package/cascadeselect/CascadeSelect.d.ts +1 -1
- package/chart/Chart.d.ts +1 -1
- package/checkbox/Checkbox.d.ts +1 -1
- package/chip/Chip.d.ts +1 -1
- package/chips/Chips.d.ts +1 -1
- package/colorpicker/ColorPicker.d.ts +1 -1
- package/column/Column.d.ts +49 -1
- package/columngroup/ColumnGroup.d.ts +6 -1
- package/config/PrimeVue.d.ts +13 -6
- package/confirmdialog/ConfirmDialog.d.ts +1 -1
- package/confirmpopup/ConfirmPopup.d.ts +1 -1
- package/contextmenu/ContextMenu.d.ts +1 -1
- package/core/core.js +144 -103
- package/core/core.min.js +10 -10
- package/datatable/BaseDataTable.vue +7 -1
- package/datatable/BodyCell.vue +7 -4
- package/datatable/ColumnFilter.vue +43 -8
- package/datatable/DataTable.d.ts +31 -1
- package/datatable/FooterCell.vue +5 -2
- package/datatable/HeaderCell.vue +8 -3
- package/datatable/HeaderCheckbox.vue +5 -2
- package/datatable/RowCheckbox.vue +5 -2
- package/datatable/RowRadioButton.vue +5 -2
- package/datatable/TableBody.vue +33 -13
- package/datatable/TableFooter.vue +13 -4
- package/datatable/TableHeader.vue +16 -5
- package/datatable/datatable.cjs.js +221 -145
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +221 -145
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +222 -146
- package/datatable/datatable.min.js +1 -1
- package/dataview/BaseDataView.vue +1 -2
- package/dataview/DataView.d.ts +1 -1
- package/dataview/DataView.vue +3 -3
- package/dataview/dataview.cjs.js +5 -13
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +5 -13
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +5 -13
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +6 -1
- package/deferredcontent/DeferredContent.d.ts +1 -1
- package/dialog/Dialog.d.ts +1 -1
- package/dialog/Dialog.vue +13 -1
- package/dialog/dialog.cjs.js +6 -2
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +6 -2
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +6 -2
- package/dialog/dialog.min.js +1 -1
- package/divider/Divider.d.ts +1 -1
- package/dock/Dock.d.ts +5 -1
- package/dock/DockSub.vue +9 -8
- package/dock/dock.cjs.js +9 -8
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +9 -8
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +9 -8
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.d.ts +1 -1
- package/editor/Editor.d.ts +1 -1
- package/fieldset/Fieldset.d.ts +1 -1
- package/fileupload/FileUpload.d.ts +1 -1
- package/galleria/Galleria.d.ts +5 -1
- package/galleria/GalleriaContent.vue +16 -6
- package/galleria/GalleriaItem.vue +2 -1
- package/galleria/GalleriaThumbnails.vue +1 -0
- package/galleria/galleria.cjs.js +34 -17
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +35 -18
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +34 -17
- package/galleria/galleria.min.js +1 -1
- package/image/Image.d.ts +1 -1
- package/inlinemessage/InlineMessage.d.ts +1 -1
- package/inplace/Inplace.d.ts +1 -1
- package/inputnumber/InputNumber.d.ts +1 -1
- package/inputswitch/InputSwitch.d.ts +1 -1
- package/inputtext/InputText.d.ts +26 -1
- package/inputtext/InputText.vue +2 -1
- package/inputtext/inputtext.cjs.js +2 -1
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +2 -1
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +2 -1
- package/inputtext/inputtext.min.js +1 -1
- package/knob/Knob.d.ts +1 -1
- package/listbox/Listbox.d.ts +1 -1
- package/megamenu/MegaMenu.d.ts +1 -1
- package/menu/Menu.d.ts +1 -1
- package/menubar/Menubar.d.ts +1 -1
- package/message/BaseMessage.vue +2 -2
- package/message/Message.d.ts +11 -1
- package/message/Message.vue +3 -3
- package/message/message.cjs.js +8 -8
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +8 -8
- package/message/message.esm.min.js +1 -1
- package/message/message.js +8 -8
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +1 -1
- package/multiselect/MultiSelect.vue +3 -2
- package/multiselect/multiselect.cjs.js +5 -5
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +6 -6
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +5 -5
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +18 -1
- package/orderlist/OrderList.vue +7 -7
- package/orderlist/orderlist.cjs.js +19 -15
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +19 -15
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +19 -15
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +1 -1
- package/overlaypanel/OverlayPanel.d.ts +1 -1
- package/overlaypanel/OverlayPanel.vue +4 -2
- package/overlaypanel/overlaypanel.cjs.js +4 -2
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +4 -2
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +4 -2
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/JumpToPageDropdown.vue +1 -1
- package/paginator/Paginator.d.ts +1 -26
- package/paginator/paginator.cjs.js +1 -1
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +1 -1
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +1 -1
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.d.ts +2 -2
- package/panelmenu/PanelMenu.d.ts +1 -1
- package/password/Password.d.ts +1 -1
- package/picklist/BasePickList.vue +4 -4
- package/picklist/PickList.d.ts +22 -1
- package/picklist/PickList.vue +19 -19
- package/picklist/picklist.cjs.js +59 -47
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +59 -47
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +59 -47
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +1 -1
- package/progressspinner/ProgressSpinner.d.ts +1 -1
- package/radiobutton/RadioButton.d.ts +1 -1
- package/rating/Rating.d.ts +1 -1
- package/row/Row.d.ts +1 -1
- package/scrollpanel/ScrollPanel.d.ts +1 -1
- package/scrollpanel/ScrollPanel.vue +2 -0
- package/scrollpanel/scrollpanel.cjs.js +6 -2
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +6 -2
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +6 -2
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/ScrollTop.d.ts +1 -1
- package/selectbutton/SelectButton.d.ts +1 -1
- package/sidebar/Sidebar.d.ts +1 -1
- package/sidebar/Sidebar.vue +1 -1
- package/sidebar/sidebar.cjs.js +3 -1
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +3 -1
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +3 -1
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/Skeleton.d.ts +1 -1
- package/slider/Slider.d.ts +1 -1
- package/speeddial/SpeedDial.d.ts +1 -1
- package/splitbutton/SplitButton.d.ts +1 -1
- package/splitbutton/SplitButton.vue +2 -1
- package/splitbutton/splitbutton.cjs.js +4 -2
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +4 -2
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +4 -2
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +1 -1
- package/splitterpanel/SplitterPanel.d.ts +1 -1
- package/steps/Steps.d.ts +1 -1
- package/tabmenu/TabMenu.d.ts +1 -1
- package/tabmenu/TabMenu.vue +71 -72
- package/tabmenu/tabmenu.cjs.js +67 -75
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +67 -75
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +67 -75
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +17 -1
- package/tabview/TabView.d.ts +6 -1
- package/tabview/TabView.vue +12 -4
- package/tabview/tabview.cjs.js +23 -16
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +23 -16
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +24 -17
- package/tabview/tabview.min.js +1 -1
- package/tag/Tag.d.ts +1 -1
- package/terminal/Terminal.d.ts +1 -1
- package/textarea/Textarea.d.ts +18 -1
- package/textarea/Textarea.vue +8 -1
- package/textarea/textarea.cjs.js +8 -1
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +8 -1
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +8 -1
- package/textarea/textarea.min.js +1 -1
- package/tieredmenu/TieredMenu.d.ts +1 -1
- package/timeline/Timeline.d.ts +20 -1
- package/timeline/Timeline.vue +14 -6
- package/timeline/timeline.cjs.js +17 -7
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +17 -7
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +17 -7
- package/timeline/timeline.min.js +1 -1
- package/toast/BaseToast.vue +2 -2
- package/toast/Toast.d.ts +11 -1
- package/toast/ToastMessage.vue +3 -2
- package/toast/toast.cjs.js +7 -6
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +7 -6
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +7 -6
- package/toast/toast.min.js +1 -1
- package/togglebutton/ToggleButton.d.ts +1 -1
- package/toolbar/Toolbar.d.ts +1 -1
- package/tree/Tree.d.ts +10 -1
- package/tree/TreeNode.vue +3 -1
- package/tree/tree.cjs.js +3 -1
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +3 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +3 -1
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +1 -1
- package/treetable/BaseTreeTable.vue +9 -3
- package/treetable/BodyCell.vue +16 -5
- package/treetable/FooterCell.vue +5 -2
- package/treetable/HeaderCell.vue +11 -3
- package/treetable/TreeTable.d.ts +31 -9
- package/treetable/TreeTable.vue +13 -5
- package/treetable/TreeTableRow.vue +11 -2
- package/treetable/treetable.cjs.js +84 -55
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +85 -56
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +84 -55
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +1 -1
- package/usestyle/UseStyle.d.ts +1 -0
- package/usestyle/usestyle.cjs.js +12 -10
- package/usestyle/usestyle.cjs.min.js +1 -1
- package/usestyle/usestyle.esm.js +12 -10
- package/usestyle/usestyle.esm.min.js +1 -1
- package/usestyle/usestyle.js +12 -10
- package/usestyle/usestyle.min.js +1 -1
- package/utils/Utils.d.ts +4 -3
- package/utils/utils.cjs.js +19 -5
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +19 -5
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +19 -5
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +8 -0
- package/vetur-tags.json +2 -0
- package/virtualscroller/VirtualScroller.d.ts +1 -1
- package/web-types.json +21 -1
package/datatable/datatable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIcon, Paginator, utils, VirtualScroller, BaseComponent, usestyle, ChevronDownIcon, ChevronRightIcon, BarsIcon, CheckIcon, PencilIcon, TimesIcon, OverlayEventBus, Ripple,
|
|
2
|
+
this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIcon, Paginator, utils, VirtualScroller, BaseComponent, usestyle, ChevronDownIcon, ChevronRightIcon, vue, BarsIcon, CheckIcon, PencilIcon, TimesIcon, OverlayEventBus, Ripple, Button, Dropdown, FocusTrap, FilterIcon, FilterSlashIcon, PlusIcon, TrashIcon, Portal, SortAltIcon, SortAmountDownIcon, SortAmountUpAltIcon) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -57,7 +57,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
57
57
|
'p-datatable-striped': props.stripedRows,
|
|
58
58
|
'p-datatable-gridlines': props.showGridlines,
|
|
59
59
|
'p-datatable-grouped-header': instance.headerColumnGroup != null,
|
|
60
|
-
'p-datatable-grouped-footer': instance.footerColumnGroup != null
|
|
60
|
+
'p-datatable-grouped-footer': instance.footerColumnGroup != null,
|
|
61
|
+
'p-datatable-sm': props.size === 'small',
|
|
62
|
+
'p-datatable-lg': props.size === 'large'
|
|
61
63
|
}];
|
|
62
64
|
},
|
|
63
65
|
loadingOverlay: 'p-datatable-loading-overlay p-component-overlay',
|
|
@@ -516,6 +518,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
516
518
|
type: Boolean,
|
|
517
519
|
"default": false
|
|
518
520
|
},
|
|
521
|
+
size: {
|
|
522
|
+
type: String,
|
|
523
|
+
"default": null
|
|
524
|
+
},
|
|
519
525
|
tableStyle: {
|
|
520
526
|
type: null,
|
|
521
527
|
"default": null
|
|
@@ -570,7 +576,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
570
576
|
},
|
|
571
577
|
methods: {
|
|
572
578
|
getColumnPT: function getColumnPT(key) {
|
|
573
|
-
|
|
579
|
+
var columnMetaData = {
|
|
574
580
|
props: this.column.props,
|
|
575
581
|
parent: {
|
|
576
582
|
props: this.$props,
|
|
@@ -582,7 +588,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
582
588
|
focused: this.focused,
|
|
583
589
|
disabled: this.$attrs.disabled
|
|
584
590
|
}
|
|
585
|
-
}
|
|
591
|
+
};
|
|
592
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
593
|
+
column: columnMetaData
|
|
594
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
586
595
|
},
|
|
587
596
|
getColumnProp: function getColumnProp() {
|
|
588
597
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
|
|
@@ -689,7 +698,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
689
698
|
},
|
|
690
699
|
methods: {
|
|
691
700
|
getColumnPT: function getColumnPT(key) {
|
|
692
|
-
|
|
701
|
+
var columnMetaData = {
|
|
693
702
|
props: this.column.props,
|
|
694
703
|
parent: {
|
|
695
704
|
props: this.$props,
|
|
@@ -701,7 +710,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
701
710
|
focused: this.focused,
|
|
702
711
|
disabled: this.$attrs.disabled
|
|
703
712
|
}
|
|
704
|
-
}
|
|
713
|
+
};
|
|
714
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
715
|
+
column: columnMetaData
|
|
716
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
705
717
|
},
|
|
706
718
|
getColumnProp: function getColumnProp() {
|
|
707
719
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
|
|
@@ -763,12 +775,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
763
775
|
|
|
764
776
|
script$9.render = render$9;
|
|
765
777
|
|
|
766
|
-
function _typeof$e(obj) { "@babel/helpers - typeof"; return _typeof$e = "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$e(obj); }
|
|
767
|
-
function ownKeys$e(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; }
|
|
768
|
-
function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty$e(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
769
|
-
function _defineProperty$e(obj, key, value) { key = _toPropertyKey$e(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
770
|
-
function _toPropertyKey$e(arg) { var key = _toPrimitive$e(arg, "string"); return _typeof$e(key) === "symbol" ? key : String(key); }
|
|
771
|
-
function _toPrimitive$e(input, hint) { if (_typeof$e(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$e(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
772
778
|
var script$8 = {
|
|
773
779
|
name: 'BodyCell',
|
|
774
780
|
hostName: 'DataTable',
|
|
@@ -890,6 +896,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
890
896
|
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
891
897
|
},
|
|
892
898
|
getColumnPT: function getColumnPT(key) {
|
|
899
|
+
var _this$$parentInstance, _this$$parentInstance2;
|
|
893
900
|
var columnMetaData = {
|
|
894
901
|
props: this.column.props,
|
|
895
902
|
parent: {
|
|
@@ -897,12 +904,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
897
904
|
state: this.$data
|
|
898
905
|
},
|
|
899
906
|
context: {
|
|
900
|
-
index: this.index
|
|
907
|
+
index: this.index,
|
|
908
|
+
size: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.size,
|
|
909
|
+
showGridlines: (_this$$parentInstance2 = this.$parentInstance) === null || _this$$parentInstance2 === void 0 || (_this$$parentInstance2 = _this$$parentInstance2.$parentInstance) === null || _this$$parentInstance2 === void 0 ? void 0 : _this$$parentInstance2.showGridlines
|
|
901
910
|
}
|
|
902
911
|
};
|
|
903
|
-
return
|
|
912
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
904
913
|
column: columnMetaData
|
|
905
|
-
})), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
914
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
906
915
|
},
|
|
907
916
|
getColumnProp: function getColumnProp() {
|
|
908
917
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined;
|
|
@@ -1230,12 +1239,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1230
1239
|
}
|
|
1231
1240
|
};
|
|
1232
1241
|
|
|
1233
|
-
function _typeof$
|
|
1234
|
-
function ownKeys$
|
|
1235
|
-
function _objectSpread$
|
|
1236
|
-
function _defineProperty$
|
|
1237
|
-
function _toPropertyKey$
|
|
1238
|
-
function _toPrimitive$
|
|
1242
|
+
function _typeof$9(obj) { "@babel/helpers - typeof"; return _typeof$9 = "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$9(obj); }
|
|
1243
|
+
function ownKeys$9(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; }
|
|
1244
|
+
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty$9(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1245
|
+
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; }
|
|
1246
|
+
function _toPropertyKey$9(arg) { var key = _toPrimitive$9(arg, "string"); return _typeof$9(key) === "symbol" ? key : String(key); }
|
|
1247
|
+
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); }
|
|
1239
1248
|
var _hoisted_1$5 = ["data-p-selection-column", "data-p-editable-column", "data-p-cell-editing", "data-p-frozen-column"];
|
|
1240
1249
|
var _hoisted_2$2 = ["aria-expanded", "aria-controls", "aria-label"];
|
|
1241
1250
|
var _hoisted_3$2 = ["aria-label"];
|
|
@@ -1253,7 +1262,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1253
1262
|
style: $options.containerStyle,
|
|
1254
1263
|
"class": $options.containerClass,
|
|
1255
1264
|
role: "cell"
|
|
1256
|
-
}, _objectSpread$
|
|
1265
|
+
}, _objectSpread$9(_objectSpread$9({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.loading), {
|
|
1257
1266
|
data: $props.rowData,
|
|
1258
1267
|
column: $props.column,
|
|
1259
1268
|
field: $options.field,
|
|
@@ -1271,7 +1280,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1271
1280
|
return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
|
|
1272
1281
|
}),
|
|
1273
1282
|
role: "cell"
|
|
1274
|
-
}, _objectSpread$
|
|
1283
|
+
}, _objectSpread$9(_objectSpread$9({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell')), {
|
|
1275
1284
|
"data-p-selection-column": $options.columnProp('selectionMode') != null,
|
|
1276
1285
|
"data-p-editable-column": $options.isEditable(),
|
|
1277
1286
|
"data-p-cell-editing": $data.d_editing,
|
|
@@ -1335,14 +1344,13 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1335
1344
|
}, [$props.column.children && $props.column.children.rowreordericon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.rowreordericon), {
|
|
1336
1345
|
key: 0,
|
|
1337
1346
|
"class": vue.normalizeClass(_ctx.cx('rowReorderIcon'))
|
|
1338
|
-
}, null, 8, ["class"])) : $options.columnProp('rowReorderIcon') ? (vue.openBlock(), vue.createElementBlock("i", {
|
|
1347
|
+
}, null, 8, ["class"])) : $options.columnProp('rowReorderIcon') ? (vue.openBlock(), vue.createElementBlock("i", vue.mergeProps({
|
|
1339
1348
|
key: 1,
|
|
1340
|
-
"class":
|
|
1341
|
-
}, null,
|
|
1349
|
+
"class": [_ctx.cx('rowReorderIcon'), $options.columnProp('rowReorderIcon')]
|
|
1350
|
+
}, $options.getColumnPT('rowReorderIcon')), null, 16)) : (vue.openBlock(), vue.createBlock(_component_BarsIcon, vue.mergeProps({
|
|
1342
1351
|
key: 2,
|
|
1343
|
-
"class":
|
|
1344
|
-
|
|
1345
|
-
}, null, 8, ["class"]))], 64)) : $options.columnProp('expander') ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
1352
|
+
"class": _ctx.cx('rowReorderIcon')
|
|
1353
|
+
}, $options.getColumnPT('rowReorderIcon')), null, 16, ["class"]))], 64)) : $options.columnProp('expander') ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
1346
1354
|
key: 6,
|
|
1347
1355
|
"class": _ctx.cx('rowToggler'),
|
|
1348
1356
|
type: "button",
|
|
@@ -1566,18 +1574,32 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1566
1574
|
columnProp: function columnProp(col, prop) {
|
|
1567
1575
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
1568
1576
|
},
|
|
1569
|
-
getColumnPT: function getColumnPT(
|
|
1570
|
-
|
|
1571
|
-
props:
|
|
1577
|
+
getColumnPT: function getColumnPT(currentColumn, key) {
|
|
1578
|
+
var columnMetaData = {
|
|
1579
|
+
props: currentColumn.props,
|
|
1572
1580
|
parent: {
|
|
1573
1581
|
props: this.$props,
|
|
1574
1582
|
state: this.$data
|
|
1575
1583
|
}
|
|
1576
|
-
}
|
|
1584
|
+
};
|
|
1585
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
1586
|
+
column: columnMetaData
|
|
1587
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(currentColumn), key, columnMetaData));
|
|
1577
1588
|
},
|
|
1578
1589
|
getColumnProp: function getColumnProp(column) {
|
|
1579
1590
|
return column.props && column.props.pt ? column.props.pt : undefined; //@todo
|
|
1580
1591
|
},
|
|
1592
|
+
getBodyRowPTOptions: function getBodyRowPTOptions(key, rowdata, index) {
|
|
1593
|
+
var _this$$parentInstance, _this$$parentInstance2, _this$$parentInstance3;
|
|
1594
|
+
return this.ptm(key, {
|
|
1595
|
+
context: {
|
|
1596
|
+
index: index,
|
|
1597
|
+
selectable: ((_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.rowHover) || ((_this$$parentInstance2 = this.$parentInstance) === null || _this$$parentInstance2 === void 0 || (_this$$parentInstance2 = _this$$parentInstance2.$parentInstance) === null || _this$$parentInstance2 === void 0 ? void 0 : _this$$parentInstance2.selectionMode),
|
|
1598
|
+
selected: this.isSelected(rowdata),
|
|
1599
|
+
stripedRows: ((_this$$parentInstance3 = this.$parentInstance) === null || _this$$parentInstance3 === void 0 || (_this$$parentInstance3 = _this$$parentInstance3.$parentInstance) === null || _this$$parentInstance3 === void 0 ? void 0 : _this$$parentInstance3.stripedRows) || false
|
|
1600
|
+
}
|
|
1601
|
+
});
|
|
1602
|
+
},
|
|
1581
1603
|
shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader(value, rowData, i) {
|
|
1582
1604
|
var currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
1583
1605
|
var prevRowData = value[i - 1];
|
|
@@ -1867,6 +1889,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1867
1889
|
},
|
|
1868
1890
|
nameAttributeSelector: function nameAttributeSelector() {
|
|
1869
1891
|
return utils.UniqueComponentId();
|
|
1892
|
+
},
|
|
1893
|
+
ptmTBodyOptions: function ptmTBodyOptions() {
|
|
1894
|
+
var _this$$parentInstance4;
|
|
1895
|
+
return {
|
|
1896
|
+
context: {
|
|
1897
|
+
scrollable: (_this$$parentInstance4 = this.$parentInstance) === null || _this$$parentInstance4 === void 0 || (_this$$parentInstance4 = _this$$parentInstance4.$parentInstance) === null || _this$$parentInstance4 === void 0 ? void 0 : _this$$parentInstance4.scrollable
|
|
1898
|
+
}
|
|
1899
|
+
};
|
|
1870
1900
|
}
|
|
1871
1901
|
},
|
|
1872
1902
|
components: {
|
|
@@ -1876,12 +1906,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1876
1906
|
}
|
|
1877
1907
|
};
|
|
1878
1908
|
|
|
1879
|
-
function _typeof$
|
|
1880
|
-
function ownKeys$
|
|
1881
|
-
function _objectSpread$
|
|
1882
|
-
function _defineProperty$
|
|
1883
|
-
function _toPropertyKey$
|
|
1884
|
-
function _toPrimitive$
|
|
1909
|
+
function _typeof$8(obj) { "@babel/helpers - typeof"; return _typeof$8 = "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$8(obj); }
|
|
1910
|
+
function ownKeys$8(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; }
|
|
1911
|
+
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty$8(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1912
|
+
function _defineProperty$8(obj, key, value) { key = _toPropertyKey$8(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1913
|
+
function _toPropertyKey$8(arg) { var key = _toPrimitive$8(arg, "string"); return _typeof$8(key) === "symbol" ? key : String(key); }
|
|
1914
|
+
function _toPrimitive$8(input, hint) { if (_typeof$8(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$8(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1885
1915
|
var _hoisted_1$4 = ["colspan"];
|
|
1886
1916
|
var _hoisted_2$1 = ["onClick"];
|
|
1887
1917
|
var _hoisted_3$1 = ["tabindex", "aria-selected", "onClick", "onDblclick", "onContextmenu", "onKeydown", "onDragstart", "onDragover", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
|
|
@@ -1898,7 +1928,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1898
1928
|
"class": _ctx.cx('tbody'),
|
|
1899
1929
|
role: "rowgroup",
|
|
1900
1930
|
style: $options.bodyStyle
|
|
1901
|
-
}, _ctx.ptm('tbody')), [!$props.empty ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
|
|
1931
|
+
}, _ctx.ptm('tbody', $options.ptmTBodyOptions)), [!$props.empty ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
|
|
1902
1932
|
key: 0
|
|
1903
1933
|
}, vue.renderList($props.value, function (rowData, index) {
|
|
1904
1934
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [$props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader($props.value, rowData, $options.getRowIndex(index)) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
@@ -1908,14 +1938,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1908
1938
|
role: "row"
|
|
1909
1939
|
}, _ctx.ptm('rowGroupHeader')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1910
1940
|
colspan: $options.columnsLength - 1
|
|
1911
|
-
}, _objectSpread$
|
|
1941
|
+
}, _objectSpread$8(_objectSpread$8({}, _ctx.ptm('column.root')), _ctx.ptm('column.bodyCell')), {
|
|
1942
|
+
"data-pc-section": "bodycell"
|
|
1943
|
+
}), [$props.expandableRowGroups ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
1912
1944
|
key: 0,
|
|
1913
1945
|
"class": _ctx.cx('rowGroupToggler'),
|
|
1914
1946
|
onClick: function onClick($event) {
|
|
1915
1947
|
return $options.onRowGroupToggle($event, rowData);
|
|
1916
1948
|
},
|
|
1917
1949
|
type: "button"
|
|
1918
|
-
},
|
|
1950
|
+
}, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
|
|
1919
1951
|
key: 0,
|
|
1920
1952
|
expanded: $options.isRowGroupExpanded(rowData)
|
|
1921
1953
|
}, null, 8, ["expanded"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
@@ -1923,16 +1955,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1923
1955
|
}, [$options.isRowGroupExpanded(rowData) && $props.expandedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
1924
1956
|
key: 0,
|
|
1925
1957
|
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
|
|
1926
|
-
},
|
|
1958
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded(rowData) && !$props.expandedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, vue.mergeProps({
|
|
1927
1959
|
key: 1,
|
|
1928
1960
|
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1929
|
-
},
|
|
1961
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded(rowData) && $props.collapsedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
1930
1962
|
key: 2,
|
|
1931
1963
|
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
|
|
1932
|
-
},
|
|
1964
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded(rowData) && !$props.collapsedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, vue.mergeProps({
|
|
1933
1965
|
key: 3,
|
|
1934
1966
|
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1935
|
-
},
|
|
1967
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : vue.createCommentVNode("", true)], 64))], 16, _hoisted_2$1)) : vue.createCommentVNode("", true), (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupheader']), {
|
|
1936
1968
|
data: rowData,
|
|
1937
1969
|
index: $options.getRowIndex(index)
|
|
1938
1970
|
}, null, 8, ["data", "index"]))], 16, _hoisted_1$4)], 16)) : vue.createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData) : true) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
@@ -1975,7 +2007,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1975
2007
|
onDrop: _cache[13] || (_cache[13] = function ($event) {
|
|
1976
2008
|
return $options.onRowDrop($event);
|
|
1977
2009
|
})
|
|
1978
|
-
},
|
|
2010
|
+
}, $options.getBodyRowPTOptions('bodyRow', rowData, index), {
|
|
1979
2011
|
"data-p-selectable-row": $props.selectionMode ? true : false,
|
|
1980
2012
|
"data-p-highlight": $props.selection && $options.isSelected(rowData),
|
|
1981
2013
|
"data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu(rowData)
|
|
@@ -2037,7 +2069,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2037
2069
|
role: "row"
|
|
2038
2070
|
}, _ctx.ptm('rowExpansion')), [vue.createElementVNode("td", vue.mergeProps({
|
|
2039
2071
|
colspan: $options.columnsLength
|
|
2040
|
-
}, _objectSpread$
|
|
2072
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['expansion']), {
|
|
2041
2073
|
data: rowData,
|
|
2042
2074
|
index: $options.getRowIndex(index)
|
|
2043
2075
|
}, null, 8, ["data", "index"]))], 16, _hoisted_5)], 16, _hoisted_4)) : vue.createCommentVNode("", true), $props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter($props.value, rowData, $options.getRowIndex(index)) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
@@ -2046,7 +2078,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2046
2078
|
role: "row"
|
|
2047
2079
|
}, _ctx.ptm('rowGroupFooter')), [vue.createElementVNode("td", vue.mergeProps({
|
|
2048
2080
|
colspan: $options.columnsLength - 1
|
|
2049
|
-
}, _objectSpread$
|
|
2081
|
+
}, _objectSpread$8(_objectSpread$8({}, _ctx.ptm('column.root')), _ctx.ptm('column.footerCell')), {
|
|
2082
|
+
"data-pc-section": "footercell"
|
|
2083
|
+
}), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
|
|
2050
2084
|
data: rowData,
|
|
2051
2085
|
index: $options.getRowIndex(index)
|
|
2052
2086
|
}, null, 8, ["data", "index"]))], 16, _hoisted_6)], 16)) : vue.createCommentVNode("", true)], 64);
|
|
@@ -2056,19 +2090,13 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2056
2090
|
role: "row"
|
|
2057
2091
|
}, _ctx.ptm('emptyMessage')), [vue.createElementVNode("td", vue.mergeProps({
|
|
2058
2092
|
colspan: $options.columnsLength
|
|
2059
|
-
}, _objectSpread$
|
|
2093
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [$props.templates.empty ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.empty), {
|
|
2060
2094
|
key: 0
|
|
2061
2095
|
})) : vue.createCommentVNode("", true)], 16, _hoisted_7)], 16))], 16);
|
|
2062
2096
|
}
|
|
2063
2097
|
|
|
2064
2098
|
script$7.render = render$7;
|
|
2065
2099
|
|
|
2066
|
-
function _typeof$b(obj) { "@babel/helpers - typeof"; return _typeof$b = "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$b(obj); }
|
|
2067
|
-
function ownKeys$b(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; }
|
|
2068
|
-
function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) { _defineProperty$b(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2069
|
-
function _defineProperty$b(obj, key, value) { key = _toPropertyKey$b(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2070
|
-
function _toPropertyKey$b(arg) { var key = _toPrimitive$b(arg, "string"); return _typeof$b(key) === "symbol" ? key : String(key); }
|
|
2071
|
-
function _toPrimitive$b(input, hint) { if (_typeof$b(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$b(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
2072
2100
|
var script$6 = {
|
|
2073
2101
|
name: 'FooterCell',
|
|
2074
2102
|
hostName: 'DataTable',
|
|
@@ -2103,6 +2131,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2103
2131
|
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
2104
2132
|
},
|
|
2105
2133
|
getColumnPT: function getColumnPT(key) {
|
|
2134
|
+
var _this$$parentInstance, _this$$parentInstance2;
|
|
2106
2135
|
var columnMetaData = {
|
|
2107
2136
|
props: this.column.props,
|
|
2108
2137
|
parent: {
|
|
@@ -2110,12 +2139,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2110
2139
|
state: this.$data
|
|
2111
2140
|
},
|
|
2112
2141
|
context: {
|
|
2113
|
-
index: this.index
|
|
2142
|
+
index: this.index,
|
|
2143
|
+
size: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.size,
|
|
2144
|
+
showGridlines: ((_this$$parentInstance2 = this.$parentInstance) === null || _this$$parentInstance2 === void 0 || (_this$$parentInstance2 = _this$$parentInstance2.$parentInstance) === null || _this$$parentInstance2 === void 0 ? void 0 : _this$$parentInstance2.showGridlines) || false
|
|
2114
2145
|
}
|
|
2115
2146
|
};
|
|
2116
|
-
return
|
|
2147
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
2117
2148
|
column: columnMetaData
|
|
2118
|
-
})), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
2149
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
2119
2150
|
},
|
|
2120
2151
|
getColumnProp: function getColumnProp() {
|
|
2121
2152
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined;
|
|
@@ -2153,12 +2184,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2153
2184
|
}
|
|
2154
2185
|
};
|
|
2155
2186
|
|
|
2156
|
-
function _typeof$
|
|
2157
|
-
function ownKeys$
|
|
2158
|
-
function _objectSpread$
|
|
2159
|
-
function _defineProperty$
|
|
2160
|
-
function _toPropertyKey$
|
|
2161
|
-
function _toPrimitive$
|
|
2187
|
+
function _typeof$7(obj) { "@babel/helpers - typeof"; return _typeof$7 = "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$7(obj); }
|
|
2188
|
+
function ownKeys$7(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; }
|
|
2189
|
+
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2190
|
+
function _defineProperty$7(obj, key, value) { key = _toPropertyKey$7(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2191
|
+
function _toPropertyKey$7(arg) { var key = _toPrimitive$7(arg, "string"); return _typeof$7(key) === "symbol" ? key : String(key); }
|
|
2192
|
+
function _toPrimitive$7(input, hint) { if (_typeof$7(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$7(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
2162
2193
|
var _hoisted_1$3 = ["colspan", "rowspan"];
|
|
2163
2194
|
function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2164
2195
|
return vue.openBlock(), vue.createElementBlock("td", vue.mergeProps({
|
|
@@ -2167,7 +2198,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2167
2198
|
role: "cell",
|
|
2168
2199
|
colspan: $options.columnProp('colspan'),
|
|
2169
2200
|
rowspan: $options.columnProp('rowspan')
|
|
2170
|
-
}, _objectSpread$
|
|
2201
|
+
}, _objectSpread$7(_objectSpread$7({}, $options.getColumnPT('root')), $options.getColumnPT('footerCell'))), [$props.column.children && $props.column.children.footer ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.footer), {
|
|
2171
2202
|
key: 0,
|
|
2172
2203
|
column: $props.column
|
|
2173
2204
|
}, null, 8, ["column"])) : vue.createCommentVNode("", true), vue.createTextVNode(" " + vue.toDisplayString($options.columnProp('footer')), 1)], 16, _hoisted_1$3);
|
|
@@ -2175,7 +2206,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2175
2206
|
|
|
2176
2207
|
script$6.render = render$6;
|
|
2177
2208
|
|
|
2178
|
-
function _typeof$9(obj) { "@babel/helpers - typeof"; return _typeof$9 = "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$9(obj); }
|
|
2179
2209
|
function _toConsumableArray$2(arr) { return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$2(); }
|
|
2180
2210
|
function _nonIterableSpread$2() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
2181
2211
|
function _iterableToArray$2(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
@@ -2183,11 +2213,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2183
2213
|
function _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(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; } } }; }
|
|
2184
2214
|
function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(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$2(o, minLen); }
|
|
2185
2215
|
function _arrayLikeToArray$2(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; }
|
|
2186
|
-
function ownKeys$9(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; }
|
|
2187
|
-
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty$9(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2188
|
-
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; }
|
|
2189
|
-
function _toPropertyKey$9(arg) { var key = _toPrimitive$9(arg, "string"); return _typeof$9(key) === "symbol" ? key : String(key); }
|
|
2190
|
-
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); }
|
|
2191
2216
|
var script$5 = {
|
|
2192
2217
|
name: 'TableFooter',
|
|
2193
2218
|
hostName: 'DataTable',
|
|
@@ -2214,12 +2239,13 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2214
2239
|
state: this.$data
|
|
2215
2240
|
},
|
|
2216
2241
|
context: {
|
|
2217
|
-
type: '
|
|
2242
|
+
type: 'footer',
|
|
2243
|
+
scrollable: this.ptmTFootOptions.context.scrollable
|
|
2218
2244
|
}
|
|
2219
2245
|
};
|
|
2220
|
-
return
|
|
2246
|
+
return vue.mergeProps(this.ptm("columnGroup.".concat(key), {
|
|
2221
2247
|
columnGroup: columnGroupMetaData
|
|
2222
|
-
})), this.ptmo(this.getColumnGroupProps(), key, columnGroupMetaData));
|
|
2248
|
+
}), this.ptm("columnGroup.".concat(key), columnGroupMetaData), this.ptmo(this.getColumnGroupProps(), key, columnGroupMetaData));
|
|
2223
2249
|
},
|
|
2224
2250
|
getColumnGroupProps: function getColumnGroupProps() {
|
|
2225
2251
|
return this.columnGroup && this.columnGroup.props && this.columnGroup.props.pt ? this.columnGroup.props.pt : undefined; //@todo
|
|
@@ -2235,9 +2261,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2235
2261
|
index: index
|
|
2236
2262
|
}
|
|
2237
2263
|
};
|
|
2238
|
-
return
|
|
2264
|
+
return vue.mergeProps(this.ptm("row.".concat(key), {
|
|
2239
2265
|
row: rowMetaData
|
|
2240
|
-
})), this.ptmo(this.getRowProp(row), key, rowMetaData));
|
|
2266
|
+
}), this.ptm("row.".concat(key), rowMetaData), this.ptmo(this.getRowProp(row), key, rowMetaData));
|
|
2241
2267
|
},
|
|
2242
2268
|
getRowProp: function getRowProp(row) {
|
|
2243
2269
|
return row.props && row.props.pt ? row.props.pt : undefined; //@todo
|
|
@@ -2298,6 +2324,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2298
2324
|
}
|
|
2299
2325
|
}
|
|
2300
2326
|
return hasFooter;
|
|
2327
|
+
},
|
|
2328
|
+
ptmTFootOptions: function ptmTFootOptions() {
|
|
2329
|
+
var _this$$parentInstance;
|
|
2330
|
+
return {
|
|
2331
|
+
context: {
|
|
2332
|
+
scrollable: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.scrollable
|
|
2333
|
+
}
|
|
2334
|
+
};
|
|
2301
2335
|
}
|
|
2302
2336
|
},
|
|
2303
2337
|
components: {
|
|
@@ -2305,12 +2339,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2305
2339
|
}
|
|
2306
2340
|
};
|
|
2307
2341
|
|
|
2308
|
-
function _typeof$
|
|
2309
|
-
function ownKeys$
|
|
2310
|
-
function _objectSpread$
|
|
2311
|
-
function _defineProperty$
|
|
2312
|
-
function _toPropertyKey$
|
|
2313
|
-
function _toPrimitive$
|
|
2342
|
+
function _typeof$6(obj) { "@babel/helpers - typeof"; return _typeof$6 = "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$6(obj); }
|
|
2343
|
+
function ownKeys$6(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; }
|
|
2344
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty$6(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2345
|
+
function _defineProperty$6(obj, key, value) { key = _toPropertyKey$6(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2346
|
+
function _toPropertyKey$6(arg) { var key = _toPrimitive$6(arg, "string"); return _typeof$6(key) === "symbol" ? key : String(key); }
|
|
2347
|
+
function _toPrimitive$6(input, hint) { if (_typeof$6(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$6(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
2314
2348
|
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2315
2349
|
var _component_DTFooterCell = vue.resolveComponent("DTFooterCell");
|
|
2316
2350
|
return $options.hasFooter ? (vue.openBlock(), vue.createElementBlock("tfoot", vue.mergeProps({
|
|
@@ -2318,7 +2352,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2318
2352
|
"class": _ctx.cx('tfoot'),
|
|
2319
2353
|
style: _ctx.sx('tfoot'),
|
|
2320
2354
|
role: "rowgroup"
|
|
2321
|
-
}, $props.columnGroup ? _objectSpread$
|
|
2355
|
+
}, $props.columnGroup ? _objectSpread$6(_objectSpread$6({}, _ctx.ptm('tfoot', $options.ptmTFootOptions)), $options.getColumnGroupPT('root')) : _ctx.ptm('tfoot', $options.ptmTFootOptions), {
|
|
2322
2356
|
"data-pc-section": "tfoot"
|
|
2323
2357
|
}), [!$props.columnGroup ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
2324
2358
|
key: 0,
|
|
@@ -2337,7 +2371,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2337
2371
|
return vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
2338
2372
|
key: i,
|
|
2339
2373
|
role: "row"
|
|
2340
|
-
}, _objectSpread$
|
|
2374
|
+
}, _objectSpread$6(_objectSpread$6({}, _ctx.ptm('footerRow')), $options.getRowPT(row, 'root', i))), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.getFooterColumns(row), function (col, j) {
|
|
2341
2375
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
2342
2376
|
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || j
|
|
2343
2377
|
}, [!$options.columnProp(col, 'hidden') ? (vue.openBlock(), vue.createBlock(_component_DTFooterCell, {
|
|
@@ -2352,12 +2386,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2352
2386
|
|
|
2353
2387
|
script$5.render = render$5;
|
|
2354
2388
|
|
|
2355
|
-
function _typeof$
|
|
2356
|
-
function ownKeys$
|
|
2357
|
-
function _objectSpread$
|
|
2358
|
-
function _defineProperty$
|
|
2359
|
-
function _toPropertyKey$
|
|
2360
|
-
function _toPrimitive$
|
|
2389
|
+
function _typeof$5(obj) { "@babel/helpers - typeof"; return _typeof$5 = "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$5(obj); }
|
|
2390
|
+
function ownKeys$5(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; }
|
|
2391
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty$5(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2392
|
+
function _defineProperty$5(obj, key, value) { key = _toPropertyKey$5(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2393
|
+
function _toPropertyKey$5(arg) { var key = _toPrimitive$5(arg, "string"); return _typeof$5(key) === "symbol" ? key : String(key); }
|
|
2394
|
+
function _toPrimitive$5(input, hint) { if (_typeof$5(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$5(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
2361
2395
|
var script$4 = {
|
|
2362
2396
|
name: 'ColumnFilter',
|
|
2363
2397
|
hostName: 'DataTable',
|
|
@@ -2502,20 +2536,30 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2502
2536
|
}
|
|
2503
2537
|
},
|
|
2504
2538
|
methods: {
|
|
2505
|
-
getColumnPT: function getColumnPT(key) {
|
|
2506
|
-
|
|
2539
|
+
getColumnPT: function getColumnPT(key, params) {
|
|
2540
|
+
var columnMetaData = _objectSpread$5({
|
|
2507
2541
|
props: this.column.props,
|
|
2508
2542
|
parent: {
|
|
2509
2543
|
props: this.$props,
|
|
2510
2544
|
state: this.$data
|
|
2511
2545
|
}
|
|
2512
|
-
});
|
|
2546
|
+
}, params);
|
|
2547
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
2548
|
+
column: columnMetaData
|
|
2549
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
2513
2550
|
},
|
|
2514
2551
|
getColumnProp: function getColumnProp() {
|
|
2515
2552
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined;
|
|
2516
2553
|
},
|
|
2554
|
+
ptmFilterRowItemOptions: function ptmFilterRowItemOptions(matchMode) {
|
|
2555
|
+
return {
|
|
2556
|
+
context: {
|
|
2557
|
+
highlighted: matchMode && this.isRowMatchModeSelected(matchMode.value)
|
|
2558
|
+
}
|
|
2559
|
+
};
|
|
2560
|
+
},
|
|
2517
2561
|
clearFilter: function clearFilter() {
|
|
2518
|
-
var _filters = _objectSpread$
|
|
2562
|
+
var _filters = _objectSpread$5({}, this.filters);
|
|
2519
2563
|
if (_filters[this.field].operator) {
|
|
2520
2564
|
_filters[this.field].constraints.splice(1);
|
|
2521
2565
|
_filters[this.field].operator = this.defaultOperator;
|
|
@@ -2574,7 +2618,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2574
2618
|
}
|
|
2575
2619
|
},
|
|
2576
2620
|
onRowMatchModeChange: function onRowMatchModeChange(matchMode) {
|
|
2577
|
-
var _filters = _objectSpread$
|
|
2621
|
+
var _filters = _objectSpread$5({}, this.filters);
|
|
2578
2622
|
_filters[this.field].matchMode = matchMode;
|
|
2579
2623
|
this.$emit('matchmode-change', {
|
|
2580
2624
|
field: this.field,
|
|
@@ -2611,7 +2655,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2611
2655
|
return this.filters[this.field].matchMode === matchMode;
|
|
2612
2656
|
},
|
|
2613
2657
|
onOperatorChange: function onOperatorChange(value) {
|
|
2614
|
-
var _filters = _objectSpread$
|
|
2658
|
+
var _filters = _objectSpread$5({}, this.filters);
|
|
2615
2659
|
_filters[this.field].operator = value;
|
|
2616
2660
|
this.$emit('filter-change', _filters);
|
|
2617
2661
|
this.$emit('operator-change', {
|
|
@@ -2623,7 +2667,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2623
2667
|
}
|
|
2624
2668
|
},
|
|
2625
2669
|
onMenuMatchModeChange: function onMenuMatchModeChange(value, index) {
|
|
2626
|
-
var _filters = _objectSpread$
|
|
2670
|
+
var _filters = _objectSpread$5({}, this.filters);
|
|
2627
2671
|
_filters[this.field].constraints[index].matchMode = value;
|
|
2628
2672
|
this.$emit('matchmode-change', {
|
|
2629
2673
|
field: this.field,
|
|
@@ -2635,7 +2679,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2635
2679
|
}
|
|
2636
2680
|
},
|
|
2637
2681
|
addConstraint: function addConstraint() {
|
|
2638
|
-
var _filters = _objectSpread$
|
|
2682
|
+
var _filters = _objectSpread$5({}, this.filters);
|
|
2639
2683
|
var newConstraint = {
|
|
2640
2684
|
value: null,
|
|
2641
2685
|
matchMode: this.defaultMatchMode
|
|
@@ -2651,7 +2695,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2651
2695
|
}
|
|
2652
2696
|
},
|
|
2653
2697
|
removeConstraint: function removeConstraint(index) {
|
|
2654
|
-
var _filters = _objectSpread$
|
|
2698
|
+
var _filters = _objectSpread$5({}, this.filters);
|
|
2655
2699
|
var removedConstraint = _filters[this.field].constraints.splice(index, 1);
|
|
2656
2700
|
this.$emit('constraint-remove', {
|
|
2657
2701
|
field: this.field,
|
|
@@ -2851,6 +2895,21 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2851
2895
|
},
|
|
2852
2896
|
filterConstraintAriaLabel: function filterConstraintAriaLabel() {
|
|
2853
2897
|
return this.$primevue.config.locale ? this.$primevue.config.locale.filterConstraint : undefined;
|
|
2898
|
+
},
|
|
2899
|
+
ptmHeaderFilterClearParams: function ptmHeaderFilterClearParams() {
|
|
2900
|
+
return {
|
|
2901
|
+
context: {
|
|
2902
|
+
hidden: this.hasRowFilter()
|
|
2903
|
+
}
|
|
2904
|
+
};
|
|
2905
|
+
},
|
|
2906
|
+
ptmFilterMenuParams: function ptmFilterMenuParams() {
|
|
2907
|
+
return {
|
|
2908
|
+
context: {
|
|
2909
|
+
overlayVisible: this.overlayVisible,
|
|
2910
|
+
active: this.hasFilter()
|
|
2911
|
+
}
|
|
2912
|
+
};
|
|
2854
2913
|
}
|
|
2855
2914
|
},
|
|
2856
2915
|
components: {
|
|
@@ -2867,12 +2926,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2867
2926
|
}
|
|
2868
2927
|
};
|
|
2869
2928
|
|
|
2870
|
-
function _typeof$
|
|
2871
|
-
function ownKeys$
|
|
2872
|
-
function _objectSpread$
|
|
2873
|
-
function _defineProperty$
|
|
2874
|
-
function _toPropertyKey$
|
|
2875
|
-
function _toPrimitive$
|
|
2929
|
+
function _typeof$4(obj) { "@babel/helpers - typeof"; return _typeof$4 = "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$4(obj); }
|
|
2930
|
+
function ownKeys$4(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; }
|
|
2931
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2932
|
+
function _defineProperty$4(obj, key, value) { key = _toPropertyKey$4(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2933
|
+
function _toPropertyKey$4(arg) { var key = _toPrimitive$4(arg, "string"); return _typeof$4(key) === "symbol" ? key : String(key); }
|
|
2934
|
+
function _toPrimitive$4(input, hint) { if (_typeof$4(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$4(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
2876
2935
|
var _hoisted_1$2 = ["aria-label", "aria-expanded", "aria-controls"];
|
|
2877
2936
|
var _hoisted_2 = ["id", "aria-modal"];
|
|
2878
2937
|
var _hoisted_3 = ["onClick", "onKeydown", "tabindex"];
|
|
@@ -2886,7 +2945,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2886
2945
|
}, $options.getColumnPT('columnFilter')), [$props.display === 'row' ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
2887
2946
|
key: 0,
|
|
2888
2947
|
"class": _ctx.cx('filterInput')
|
|
2889
|
-
}, _objectSpread$
|
|
2948
|
+
}, _objectSpread$4(_objectSpread$4({}, $props.filterInputProps), $options.getColumnPT('filterInput'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterElement), {
|
|
2890
2949
|
field: $props.field,
|
|
2891
2950
|
filterModel: $props.filters[$props.field],
|
|
2892
2951
|
filterCallback: $options.filterCallback
|
|
@@ -2905,14 +2964,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2905
2964
|
onKeydown: _cache[1] || (_cache[1] = function ($event) {
|
|
2906
2965
|
return $options.onToggleButtonKeyDown($event);
|
|
2907
2966
|
})
|
|
2908
|
-
}, $options.getColumnPT('filterMenuButton')), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterIconTemplate || 'FilterIcon')))], 16, _hoisted_1$2)) : vue.createCommentVNode("", true), $props.showClearButton && $props.display === 'row' ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
2967
|
+
}, $options.getColumnPT('filterMenuButton', $options.ptmFilterMenuParams)), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterIconTemplate || 'FilterIcon'), vue.normalizeProps(vue.guardReactiveProps($options.getColumnPT('filterMenuIcon'))), null, 16))], 16, _hoisted_1$2)) : vue.createCommentVNode("", true), $props.showClearButton && $props.display === 'row' ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
2909
2968
|
key: 2,
|
|
2910
2969
|
"class": _ctx.cx('headerFilterClearButton'),
|
|
2911
2970
|
type: "button",
|
|
2912
2971
|
onClick: _cache[2] || (_cache[2] = function ($event) {
|
|
2913
2972
|
return $options.clearFilter();
|
|
2914
2973
|
})
|
|
2915
|
-
}, $options.getColumnPT('headerFilterClearButton')), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterClearIconTemplate || 'FilterSlashIcon'), vue.normalizeProps(vue.guardReactiveProps($options.getColumnPT('filterClearIcon'))), null, 16))], 16)) : vue.createCommentVNode("", true), vue.createVNode(_component_Portal, null, {
|
|
2974
|
+
}, $options.getColumnPT('headerFilterClearButton', $options.ptmHeaderFilterClearParams)), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterClearIconTemplate || 'FilterSlashIcon'), vue.normalizeProps(vue.guardReactiveProps($options.getColumnPT('filterClearIcon'))), null, 16))], 16)) : vue.createCommentVNode("", true), vue.createVNode(_component_Portal, null, {
|
|
2916
2975
|
"default": vue.withCtx(function () {
|
|
2917
2976
|
return [vue.createVNode(vue.Transition, {
|
|
2918
2977
|
name: "p-connected-overlay",
|
|
@@ -2959,7 +3018,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2959
3018
|
return $options.onRowMatchModeChange(matchMode.value);
|
|
2960
3019
|
}, ["prevent"]), ["enter"])],
|
|
2961
3020
|
tabindex: i === 0 ? '0' : null
|
|
2962
|
-
}, $options.getColumnPT('filterRowItem')), vue.toDisplayString(matchMode.label), 17, _hoisted_3);
|
|
3021
|
+
}, $options.getColumnPT('filterRowItem', $options.ptmFilterRowItemOptions(matchMode))), vue.toDisplayString(matchMode.label), 17, _hoisted_3);
|
|
2963
3022
|
}), 128)), vue.createElementVNode("li", vue.mergeProps({
|
|
2964
3023
|
"class": _ctx.cx('filterSeparator')
|
|
2965
3024
|
}, $options.getColumnPT('filterSeparator')), null, 16), vue.createElementVNode("li", vue.mergeProps({
|
|
@@ -3024,6 +3083,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3024
3083
|
},
|
|
3025
3084
|
label: $options.removeRuleButtonLabel,
|
|
3026
3085
|
unstyled: _ctx.unstyled,
|
|
3086
|
+
text: "",
|
|
3087
|
+
severity: "danger",
|
|
3088
|
+
size: "small",
|
|
3027
3089
|
pt: $options.getColumnPT('filterRemoveButton'),
|
|
3028
3090
|
"data-pc-section": "filterremovebutton"
|
|
3029
3091
|
}, {
|
|
@@ -3046,6 +3108,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3046
3108
|
return $options.addConstraint();
|
|
3047
3109
|
}),
|
|
3048
3110
|
unstyled: _ctx.unstyled,
|
|
3111
|
+
text: "",
|
|
3112
|
+
severity: "info",
|
|
3113
|
+
size: "small",
|
|
3049
3114
|
pt: $options.getColumnPT('filterAddRuleButton'),
|
|
3050
3115
|
"data-pc-section": "filteraddrulebutton"
|
|
3051
3116
|
}, {
|
|
@@ -3064,6 +3129,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3064
3129
|
label: $options.clearButtonLabel,
|
|
3065
3130
|
onClick: $options.clearFilter,
|
|
3066
3131
|
unstyled: _ctx.unstyled,
|
|
3132
|
+
size: "small",
|
|
3133
|
+
outlined: "",
|
|
3067
3134
|
pt: $options.getColumnPT('filterClearButton'),
|
|
3068
3135
|
"data-pc-section": "filterclearbutton"
|
|
3069
3136
|
}, null, 8, ["class", "label", "onClick", "unstyled", "pt"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterClearTemplate), {
|
|
@@ -3082,6 +3149,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3082
3149
|
return $options.applyFilter();
|
|
3083
3150
|
}),
|
|
3084
3151
|
unstyled: _ctx.unstyled,
|
|
3152
|
+
size: "small",
|
|
3085
3153
|
pt: $options.getColumnPT('filterApplyButton'),
|
|
3086
3154
|
"data-pc-section": "filterapplybutton"
|
|
3087
3155
|
}, null, 8, ["class", "label", "unstyled", "pt"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterApplyTemplate), {
|
|
@@ -3127,7 +3195,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3127
3195
|
},
|
|
3128
3196
|
methods: {
|
|
3129
3197
|
getColumnPT: function getColumnPT(key) {
|
|
3130
|
-
|
|
3198
|
+
var columnMetaData = {
|
|
3131
3199
|
props: this.column.props,
|
|
3132
3200
|
parent: {
|
|
3133
3201
|
props: this.$props,
|
|
@@ -3138,7 +3206,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3138
3206
|
focused: this.focused,
|
|
3139
3207
|
disabled: this.disabled
|
|
3140
3208
|
}
|
|
3141
|
-
}
|
|
3209
|
+
};
|
|
3210
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
3211
|
+
column: columnMetaData
|
|
3212
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
3142
3213
|
},
|
|
3143
3214
|
getColumnProp: function getColumnProp() {
|
|
3144
3215
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
|
|
@@ -3212,12 +3283,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3212
3283
|
|
|
3213
3284
|
script$3.render = render$3;
|
|
3214
3285
|
|
|
3215
|
-
function _typeof$5(obj) { "@babel/helpers - typeof"; return _typeof$5 = "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$5(obj); }
|
|
3216
|
-
function ownKeys$5(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; }
|
|
3217
|
-
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty$5(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3218
|
-
function _defineProperty$5(obj, key, value) { key = _toPropertyKey$5(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3219
|
-
function _toPropertyKey$5(arg) { var key = _toPrimitive$5(arg, "string"); return _typeof$5(key) === "symbol" ? key : String(key); }
|
|
3220
|
-
function _toPrimitive$5(input, hint) { if (_typeof$5(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$5(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3221
3286
|
var script$2 = {
|
|
3222
3287
|
name: 'HeaderCell',
|
|
3223
3288
|
hostName: 'DataTable',
|
|
@@ -3317,6 +3382,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3317
3382
|
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
3318
3383
|
},
|
|
3319
3384
|
getColumnPT: function getColumnPT(key) {
|
|
3385
|
+
var _this$$parentInstance, _this$$parentInstance2;
|
|
3320
3386
|
var columnMetaData = {
|
|
3321
3387
|
props: this.column.props,
|
|
3322
3388
|
parent: {
|
|
@@ -3324,12 +3390,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3324
3390
|
state: this.$data
|
|
3325
3391
|
},
|
|
3326
3392
|
context: {
|
|
3327
|
-
index: this.index
|
|
3393
|
+
index: this.index,
|
|
3394
|
+
sorted: this.isColumnSorted(),
|
|
3395
|
+
resizable: this.resizableColumns,
|
|
3396
|
+
size: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.size,
|
|
3397
|
+
showGridlines: ((_this$$parentInstance2 = this.$parentInstance) === null || _this$$parentInstance2 === void 0 || (_this$$parentInstance2 = _this$$parentInstance2.$parentInstance) === null || _this$$parentInstance2 === void 0 ? void 0 : _this$$parentInstance2.showGridlines) || false
|
|
3328
3398
|
}
|
|
3329
3399
|
};
|
|
3330
|
-
return
|
|
3400
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
3331
3401
|
column: columnMetaData
|
|
3332
|
-
})), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
3402
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
3333
3403
|
},
|
|
3334
3404
|
getColumnProp: function getColumnProp() {
|
|
3335
3405
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
|
|
@@ -3470,12 +3540,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3470
3540
|
}
|
|
3471
3541
|
};
|
|
3472
3542
|
|
|
3473
|
-
function _typeof$
|
|
3474
|
-
function ownKeys$
|
|
3475
|
-
function _objectSpread$
|
|
3476
|
-
function _defineProperty$
|
|
3477
|
-
function _toPropertyKey$
|
|
3478
|
-
function _toPrimitive$
|
|
3543
|
+
function _typeof$3(obj) { "@babel/helpers - typeof"; return _typeof$3 = "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$3(obj); }
|
|
3544
|
+
function ownKeys$3(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; }
|
|
3545
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty$3(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3546
|
+
function _defineProperty$3(obj, key, value) { key = _toPropertyKey$3(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3547
|
+
function _toPropertyKey$3(arg) { var key = _toPrimitive$3(arg, "string"); return _typeof$3(key) === "symbol" ? key : String(key); }
|
|
3548
|
+
function _toPrimitive$3(input, hint) { if (_typeof$3(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$3(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3479
3549
|
var _hoisted_1 = ["tabindex", "colspan", "rowspan", "aria-sort", "data-p-sortable-column", "data-p-resizable-column", "data-p-highlight", "data-p-filter-column", "data-p-frozen-column", "data-p-reorderable-column"];
|
|
3480
3550
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3481
3551
|
var _component_DTHeaderCheckbox = vue.resolveComponent("DTHeaderCheckbox");
|
|
@@ -3509,7 +3579,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3509
3579
|
onDrop: _cache[14] || (_cache[14] = function () {
|
|
3510
3580
|
return $options.onDrop && $options.onDrop.apply($options, arguments);
|
|
3511
3581
|
})
|
|
3512
|
-
}, _objectSpread$
|
|
3582
|
+
}, _objectSpread$3(_objectSpread$3({}, $options.getColumnPT('root')), $options.getColumnPT('headerCell')), {
|
|
3513
3583
|
"data-p-sortable-column": $options.columnProp('sortable'),
|
|
3514
3584
|
"data-p-resizable-column": $props.resizableColumns,
|
|
3515
3585
|
"data-p-highlight": $options.isColumnSorted(),
|
|
@@ -3532,12 +3602,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3532
3602
|
"class": _ctx.cx('headerTitle')
|
|
3533
3603
|
}, $options.getColumnPT('headerTitle')), vue.toDisplayString($options.columnProp('header')), 17)) : vue.createCommentVNode("", true), $options.columnProp('sortable') ? (vue.openBlock(), vue.createElementBlock("span", vue.normalizeProps(vue.mergeProps({
|
|
3534
3604
|
key: 2
|
|
3535
|
-
}, $options.getColumnPT('sort'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children && $props.column.children.sorticon || $options.sortableColumnIcon), {
|
|
3605
|
+
}, $options.getColumnPT('sort'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children && $props.column.children.sorticon || $options.sortableColumnIcon), vue.mergeProps({
|
|
3536
3606
|
sorted: $options.sortState.sorted,
|
|
3537
3607
|
sortOrder: $options.sortState.sortOrder,
|
|
3538
3608
|
"data-pc-section": "sorticon",
|
|
3539
|
-
"class":
|
|
3540
|
-
}, null,
|
|
3609
|
+
"class": _ctx.cx('sortIcon')
|
|
3610
|
+
}, $options.getColumnPT('sorticon')), null, 16, ["sorted", "sortOrder", "class"]))], 16)) : vue.createCommentVNode("", true), $options.isMultiSorted() ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
3541
3611
|
key: 3,
|
|
3542
3612
|
"class": _ctx.cx('sortBadge')
|
|
3543
3613
|
}, $options.getColumnPT('sortBadge')), vue.toDisplayString($options.getBadgeValue()), 17)) : vue.createCommentVNode("", true), $options.columnProp('selectionMode') === 'multiple' && $props.filterDisplay !== 'row' ? (vue.openBlock(), vue.createBlock(_component_DTHeaderCheckbox, {
|
|
@@ -3604,7 +3674,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3604
3674
|
|
|
3605
3675
|
script$2.render = render$2;
|
|
3606
3676
|
|
|
3607
|
-
function _typeof$3(obj) { "@babel/helpers - typeof"; return _typeof$3 = "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$3(obj); }
|
|
3608
3677
|
function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
|
|
3609
3678
|
function _nonIterableSpread$1() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3610
3679
|
function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
@@ -3612,11 +3681,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3612
3681
|
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(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; } } }; }
|
|
3613
3682
|
function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(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$1(o, minLen); }
|
|
3614
3683
|
function _arrayLikeToArray$1(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; }
|
|
3615
|
-
function ownKeys$3(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; }
|
|
3616
|
-
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty$3(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3617
|
-
function _defineProperty$3(obj, key, value) { key = _toPropertyKey$3(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3618
|
-
function _toPropertyKey$3(arg) { var key = _toPrimitive$3(arg, "string"); return _typeof$3(key) === "symbol" ? key : String(key); }
|
|
3619
|
-
function _toPrimitive$3(input, hint) { if (_typeof$3(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$3(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3620
3684
|
var script$1 = {
|
|
3621
3685
|
name: 'TableHeader',
|
|
3622
3686
|
hostName: 'DataTable',
|
|
@@ -3701,6 +3765,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3701
3765
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
3702
3766
|
},
|
|
3703
3767
|
getColumnGroupPT: function getColumnGroupPT(key) {
|
|
3768
|
+
var _this$$parentInstance;
|
|
3704
3769
|
var columnGroupMetaData = {
|
|
3705
3770
|
props: this.getColumnGroupProps(),
|
|
3706
3771
|
parent: {
|
|
@@ -3708,12 +3773,13 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3708
3773
|
state: this.$data
|
|
3709
3774
|
},
|
|
3710
3775
|
context: {
|
|
3711
|
-
type: 'header'
|
|
3776
|
+
type: 'header',
|
|
3777
|
+
scrollable: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.scrollable
|
|
3712
3778
|
}
|
|
3713
3779
|
};
|
|
3714
|
-
return
|
|
3780
|
+
return vue.mergeProps(this.ptm("columnGroup.".concat(key), {
|
|
3715
3781
|
columnGroup: columnGroupMetaData
|
|
3716
|
-
})), this.ptmo(this.getColumnGroupProps(), key, columnGroupMetaData));
|
|
3782
|
+
}), this.ptm("columnGroup.".concat(key), columnGroupMetaData), this.ptmo(this.getColumnGroupProps(), key, columnGroupMetaData));
|
|
3717
3783
|
},
|
|
3718
3784
|
getColumnGroupProps: function getColumnGroupProps() {
|
|
3719
3785
|
return this.columnGroup && this.columnGroup.props && this.columnGroup.props.pt ? this.columnGroup.props.pt : undefined; //@todo
|
|
@@ -3729,9 +3795,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3729
3795
|
index: index
|
|
3730
3796
|
}
|
|
3731
3797
|
};
|
|
3732
|
-
return
|
|
3798
|
+
return vue.mergeProps(this.ptm("row.".concat(key), {
|
|
3733
3799
|
row: rowMetaData
|
|
3734
|
-
})), this.ptmo(this.getRowProp(row), key, rowMetaData));
|
|
3800
|
+
}), this.ptm("row.".concat(key), rowMetaData), this.ptmo(this.getRowProp(row), key, rowMetaData));
|
|
3735
3801
|
},
|
|
3736
3802
|
getRowProp: function getRowProp(row) {
|
|
3737
3803
|
return row.props && row.props.pt ? row.props.pt : undefined; //@todo
|
|
@@ -3747,9 +3813,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3747
3813
|
index: index
|
|
3748
3814
|
}
|
|
3749
3815
|
};
|
|
3750
|
-
return
|
|
3816
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
3751
3817
|
column: columnMetaData
|
|
3752
|
-
})), this.ptmo(this.getColumnProp(column), key, columnMetaData));
|
|
3818
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(column), key, columnMetaData));
|
|
3753
3819
|
},
|
|
3754
3820
|
getColumnProp: function getColumnProp(column) {
|
|
3755
3821
|
return column.props && column.props.pt ? column.props.pt : undefined; //@todo
|
|
@@ -3795,6 +3861,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3795
3861
|
}
|
|
3796
3862
|
}
|
|
3797
3863
|
},
|
|
3864
|
+
computed: {
|
|
3865
|
+
ptmTHeadOptions: function ptmTHeadOptions() {
|
|
3866
|
+
var _this$$parentInstance2;
|
|
3867
|
+
return {
|
|
3868
|
+
context: {
|
|
3869
|
+
scrollable: (_this$$parentInstance2 = this.$parentInstance) === null || _this$$parentInstance2 === void 0 || (_this$$parentInstance2 = _this$$parentInstance2.$parentInstance) === null || _this$$parentInstance2 === void 0 ? void 0 : _this$$parentInstance2.scrollable
|
|
3870
|
+
}
|
|
3871
|
+
};
|
|
3872
|
+
}
|
|
3873
|
+
},
|
|
3798
3874
|
components: {
|
|
3799
3875
|
DTHeaderCell: script$2,
|
|
3800
3876
|
DTHeaderCheckbox: script$3,
|
|
@@ -3816,7 +3892,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3816
3892
|
"class": _ctx.cx('thead'),
|
|
3817
3893
|
style: _ctx.sx('thead'),
|
|
3818
3894
|
role: "rowgroup"
|
|
3819
|
-
}, $props.columnGroup ? _objectSpread$2(_objectSpread$2({}, _ctx.ptm('thead')), $options.getColumnGroupPT('root')) : _ctx.ptm('thead'), {
|
|
3895
|
+
}, $props.columnGroup ? _objectSpread$2(_objectSpread$2({}, _ctx.ptm('thead', $options.ptmTHeadOptions)), $options.getColumnGroupPT('root')) : _ctx.ptm('thead', $options.ptmTHeadOptions), {
|
|
3820
3896
|
"data-pc-section": "thead"
|
|
3821
3897
|
}), [!$props.columnGroup ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
3822
3898
|
key: 0
|
|
@@ -6103,4 +6179,4 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
6103
6179
|
|
|
6104
6180
|
return script;
|
|
6105
6181
|
|
|
6106
|
-
})(primevue.api, primevue.icons.arrowdown, primevue.icons.arrowup, primevue.icons.spinner, primevue.paginator, primevue.utils, primevue.virtualscroller, primevue.basecomponent, primevue.usestyle, primevue.icons.chevrondown, primevue.icons.chevronright, primevue.icons.bars, primevue.icons.check, primevue.icons.pencil, primevue.icons.times, primevue.overlayeventbus, primevue.ripple,
|
|
6182
|
+
})(primevue.api, primevue.icons.arrowdown, primevue.icons.arrowup, primevue.icons.spinner, primevue.paginator, primevue.utils, primevue.virtualscroller, primevue.basecomponent, primevue.usestyle, primevue.icons.chevrondown, primevue.icons.chevronright, Vue, primevue.icons.bars, primevue.icons.check, primevue.icons.pencil, primevue.icons.times, primevue.overlayeventbus, primevue.ripple, primevue.button, primevue.dropdown, primevue.focustrap, primevue.icons.filter, primevue.icons.filterslash, primevue.icons.plus, primevue.icons.trash, primevue.portal, primevue.icons.sortalt, primevue.icons.sortamountdown, primevue.icons.sortamountupalt);
|