primeng 20.2.0 → 20.3.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/index.d.ts +31 -12
- package/animateonscroll/index.d.ts +5 -6
- package/api/index.d.ts +128 -2
- package/autocomplete/index.d.ts +18 -208
- package/autofocus/index.d.ts +2 -2
- package/avatar/index.d.ts +12 -5
- package/avatargroup/index.d.ts +10 -5
- package/badge/index.d.ts +18 -10
- package/base/index.d.ts +4 -9
- package/basecomponent/index.d.ts +147 -29
- package/baseeditableholder/index.d.ts +3 -3
- package/baseinput/index.d.ts +3 -3
- package/basemodelholder/index.d.ts +3 -3
- package/bind/index.d.ts +38 -0
- package/blockui/index.d.ts +17 -21
- package/breadcrumb/index.d.ts +15 -45
- package/button/index.d.ts +113 -153
- package/buttongroup/index.d.ts +1 -1
- package/card/index.d.ts +18 -36
- package/carousel/index.d.ts +18 -74
- package/cascadeselect/index.d.ts +23 -131
- package/chart/index.d.ts +13 -7
- package/checkbox/index.d.ts +16 -35
- package/chip/index.d.ts +15 -36
- package/classnames/index.d.ts +3 -9
- package/colorpicker/index.d.ts +15 -27
- package/config/index.d.ts +203 -24
- package/confirmdialog/index.d.ts +22 -49
- package/confirmpopup/index.d.ts +15 -36
- package/contextmenu/index.d.ts +19 -8
- package/dataview/index.d.ts +17 -184
- package/datepicker/index.d.ts +23 -215
- package/dialog/index.d.ts +16 -40
- package/divider/index.d.ts +10 -4
- package/dock/index.d.ts +17 -29
- package/drawer/index.d.ts +16 -37
- package/dynamicdialog/index.d.ts +67 -75
- package/editor/index.d.ts +16 -132
- package/fesm2022/primeng-accordion.mjs +93 -57
- package/fesm2022/primeng-accordion.mjs.map +1 -1
- package/fesm2022/primeng-animateonscroll.mjs +10 -13
- package/fesm2022/primeng-animateonscroll.mjs.map +1 -1
- package/fesm2022/primeng-api.mjs +31 -31
- package/fesm2022/primeng-autocomplete.mjs +91 -61
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-autofocus.mjs +9 -9
- package/fesm2022/primeng-autofocus.mjs.map +1 -1
- package/fesm2022/primeng-avatar.mjs +33 -24
- package/fesm2022/primeng-avatar.mjs.map +1 -1
- package/fesm2022/primeng-avatargroup.mjs +24 -22
- package/fesm2022/primeng-avatargroup.mjs.map +1 -1
- package/fesm2022/primeng-badge.mjs +65 -47
- package/fesm2022/primeng-badge.mjs.map +1 -1
- package/fesm2022/primeng-base.mjs +10 -13
- package/fesm2022/primeng-base.mjs.map +1 -1
- package/fesm2022/primeng-basecomponent.mjs +345 -94
- package/fesm2022/primeng-basecomponent.mjs.map +1 -1
- package/fesm2022/primeng-baseeditableholder.mjs +3 -3
- package/fesm2022/primeng-baseeditableholder.mjs.map +1 -1
- package/fesm2022/primeng-baseinput.mjs +3 -3
- package/fesm2022/primeng-baseinput.mjs.map +1 -1
- package/fesm2022/primeng-basemodelholder.mjs +3 -3
- package/fesm2022/primeng-basemodelholder.mjs.map +1 -1
- package/fesm2022/primeng-bind.mjs +94 -0
- package/fesm2022/primeng-bind.mjs.map +1 -0
- package/fesm2022/primeng-blockui.mjs +30 -24
- package/fesm2022/primeng-blockui.mjs.map +1 -1
- package/fesm2022/primeng-breadcrumb.mjs +91 -66
- package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
- package/fesm2022/primeng-button.mjs +247 -207
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/fesm2022/primeng-buttongroup.mjs +14 -14
- package/fesm2022/primeng-buttongroup.mjs.map +1 -1
- package/fesm2022/primeng-card.mjs +58 -38
- package/fesm2022/primeng-card.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +142 -45
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +221 -193
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
- package/fesm2022/primeng-chart.mjs +43 -20
- package/fesm2022/primeng-chart.mjs.map +1 -1
- package/fesm2022/primeng-checkbox.mjs +47 -33
- package/fesm2022/primeng-checkbox.mjs.map +1 -1
- package/fesm2022/primeng-chip.mjs +43 -36
- package/fesm2022/primeng-chip.mjs.map +1 -1
- package/fesm2022/primeng-classnames.mjs +15 -40
- package/fesm2022/primeng-classnames.mjs.map +1 -1
- package/fesm2022/primeng-colorpicker.mjs +49 -41
- package/fesm2022/primeng-colorpicker.mjs.map +1 -1
- package/fesm2022/primeng-config.mjs +23 -8
- package/fesm2022/primeng-config.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +57 -33
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-confirmpopup.mjs +45 -29
- package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
- package/fesm2022/primeng-contextmenu.mjs +131 -83
- package/fesm2022/primeng-contextmenu.mjs.map +1 -1
- package/fesm2022/primeng-dataview.mjs +51 -42
- package/fesm2022/primeng-dataview.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +292 -186
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +73 -40
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-divider.mjs +29 -21
- package/fesm2022/primeng-divider.mjs.map +1 -1
- package/fesm2022/primeng-dock.mjs +63 -43
- package/fesm2022/primeng-dock.mjs.map +1 -1
- package/fesm2022/primeng-dragdrop.mjs +10 -10
- package/fesm2022/primeng-drawer.mjs +54 -43
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +361 -564
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-editor.mjs +101 -89
- package/fesm2022/primeng-editor.mjs.map +1 -1
- package/fesm2022/primeng-fieldset.mjs +64 -47
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +125 -120
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-floatlabel.mjs +28 -19
- package/fesm2022/primeng-floatlabel.mjs.map +1 -1
- package/fesm2022/primeng-fluid.mjs +24 -14
- package/fesm2022/primeng-fluid.mjs.map +1 -1
- package/fesm2022/primeng-focustrap.mjs +9 -11
- package/fesm2022/primeng-focustrap.mjs.map +1 -1
- package/fesm2022/primeng-galleria.mjs +346 -214
- package/fesm2022/primeng-galleria.mjs.map +1 -1
- package/fesm2022/primeng-iconfield.mjs +30 -18
- package/fesm2022/primeng-iconfield.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubledown.mjs +3 -3
- package/fesm2022/primeng-icons-angledoubleleft.mjs +3 -3
- package/fesm2022/primeng-icons-angledoubleright.mjs +3 -3
- package/fesm2022/primeng-icons-angledoubleup.mjs +3 -3
- package/fesm2022/primeng-icons-angledown.mjs +3 -3
- package/fesm2022/primeng-icons-angleleft.mjs +3 -3
- package/fesm2022/primeng-icons-angleright.mjs +3 -3
- package/fesm2022/primeng-icons-angleup.mjs +3 -3
- package/fesm2022/primeng-icons-arrowdown.mjs +4 -5
- package/fesm2022/primeng-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdownleft.mjs +3 -3
- package/fesm2022/primeng-icons-arrowdownright.mjs +3 -3
- package/fesm2022/primeng-icons-arrowleft.mjs +4 -5
- package/fesm2022/primeng-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowright.mjs +3 -3
- package/fesm2022/primeng-icons-arrowup.mjs +4 -5
- package/fesm2022/primeng-icons-arrowup.mjs.map +1 -1
- package/fesm2022/primeng-icons-ban.mjs +4 -5
- package/fesm2022/primeng-icons-ban.mjs.map +1 -1
- package/fesm2022/primeng-icons-bars.mjs +3 -3
- package/fesm2022/primeng-icons-baseicon.mjs +7 -6
- package/fesm2022/primeng-icons-baseicon.mjs.map +1 -1
- package/fesm2022/primeng-icons-blank.mjs +3 -3
- package/fesm2022/primeng-icons-calendar.mjs +3 -3
- package/fesm2022/primeng-icons-caretleft.mjs +3 -3
- package/fesm2022/primeng-icons-caretright.mjs +3 -3
- package/fesm2022/primeng-icons-check.mjs +3 -3
- package/fesm2022/primeng-icons-chevrondown.mjs +3 -3
- package/fesm2022/primeng-icons-chevronleft.mjs +3 -3
- package/fesm2022/primeng-icons-chevronright.mjs +3 -3
- package/fesm2022/primeng-icons-chevronup.mjs +3 -3
- package/fesm2022/primeng-icons-exclamationtriangle.mjs +4 -5
- package/fesm2022/primeng-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/primeng-icons-eye.mjs +3 -3
- package/fesm2022/primeng-icons-eyeslash.mjs +4 -5
- package/fesm2022/primeng-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-filter.mjs +4 -5
- package/fesm2022/primeng-icons-filter.mjs.map +1 -1
- package/fesm2022/primeng-icons-filterfill.mjs +3 -3
- package/fesm2022/primeng-icons-filterslash.mjs +4 -5
- package/fesm2022/primeng-icons-filterslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-home.mjs +4 -5
- package/fesm2022/primeng-icons-home.mjs.map +1 -1
- package/fesm2022/primeng-icons-infocircle.mjs +4 -5
- package/fesm2022/primeng-icons-infocircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-minus.mjs +3 -3
- package/fesm2022/primeng-icons-pencil.mjs +4 -5
- package/fesm2022/primeng-icons-pencil.mjs.map +1 -1
- package/fesm2022/primeng-icons-plus.mjs +4 -5
- package/fesm2022/primeng-icons-plus.mjs.map +1 -1
- package/fesm2022/primeng-icons-refresh.mjs +4 -5
- package/fesm2022/primeng-icons-refresh.mjs.map +1 -1
- package/fesm2022/primeng-icons-search.mjs +4 -5
- package/fesm2022/primeng-icons-search.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchminus.mjs +4 -5
- package/fesm2022/primeng-icons-searchminus.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchplus.mjs +4 -5
- package/fesm2022/primeng-icons-searchplus.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortalt.mjs +4 -5
- package/fesm2022/primeng-icons-sortalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountdown.mjs +4 -5
- package/fesm2022/primeng-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountupalt.mjs +4 -5
- package/fesm2022/primeng-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-spinner.mjs +4 -5
- package/fesm2022/primeng-icons-spinner.mjs.map +1 -1
- package/fesm2022/primeng-icons-star.mjs +4 -5
- package/fesm2022/primeng-icons-star.mjs.map +1 -1
- package/fesm2022/primeng-icons-starfill.mjs +4 -5
- package/fesm2022/primeng-icons-starfill.mjs.map +1 -1
- package/fesm2022/primeng-icons-thlarge.mjs +4 -5
- package/fesm2022/primeng-icons-thlarge.mjs.map +1 -1
- package/fesm2022/primeng-icons-times.mjs +3 -3
- package/fesm2022/primeng-icons-timescircle.mjs +4 -5
- package/fesm2022/primeng-icons-timescircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-trash.mjs +4 -5
- package/fesm2022/primeng-icons-trash.mjs.map +1 -1
- package/fesm2022/primeng-icons-undo.mjs +4 -5
- package/fesm2022/primeng-icons-undo.mjs.map +1 -1
- package/fesm2022/primeng-icons-upload.mjs +4 -5
- package/fesm2022/primeng-icons-upload.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowmaximize.mjs +4 -5
- package/fesm2022/primeng-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowminimize.mjs +4 -5
- package/fesm2022/primeng-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/primeng-iftalabel.mjs +27 -17
- package/fesm2022/primeng-iftalabel.mjs.map +1 -1
- package/fesm2022/primeng-image.mjs +92 -42
- package/fesm2022/primeng-image.mjs.map +1 -1
- package/fesm2022/primeng-imagecompare.mjs +31 -24
- package/fesm2022/primeng-imagecompare.mjs.map +1 -1
- package/fesm2022/primeng-inplace.mjs +46 -36
- package/fesm2022/primeng-inplace.mjs.map +1 -1
- package/fesm2022/primeng-inputgroup.mjs +28 -21
- package/fesm2022/primeng-inputgroup.mjs.map +1 -1
- package/fesm2022/primeng-inputgroupaddon.mjs +25 -19
- package/fesm2022/primeng-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/primeng-inputicon.mjs +27 -15
- package/fesm2022/primeng-inputicon.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +38 -29
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +67 -60
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +31 -19
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-inputtext.mjs +39 -20
- package/fesm2022/primeng-inputtext.mjs.map +1 -1
- package/fesm2022/primeng-keyfilter.mjs +7 -7
- package/fesm2022/primeng-keyfilter.mjs.map +1 -1
- package/fesm2022/primeng-knob.mjs +35 -27
- package/fesm2022/primeng-knob.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs +146 -61
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-megamenu.mjs +363 -345
- package/fesm2022/primeng-megamenu.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +116 -60
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-menubar.mjs +122 -86
- package/fesm2022/primeng-menubar.mjs.map +1 -1
- package/fesm2022/primeng-message.mjs +47 -39
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-metergroup.mjs +53 -43
- package/fesm2022/primeng-metergroup.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +196 -147
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-orderlist.mjs +80 -49
- package/fesm2022/primeng-orderlist.mjs.map +1 -1
- package/fesm2022/primeng-organizationchart.mjs +93 -67
- package/fesm2022/primeng-organizationchart.mjs.map +1 -1
- package/fesm2022/primeng-overlay.mjs +67 -80
- package/fesm2022/primeng-overlay.mjs.map +1 -1
- package/fesm2022/primeng-overlaybadge.mjs +31 -22
- package/fesm2022/primeng-overlaybadge.mjs.map +1 -1
- package/fesm2022/primeng-paginator.mjs +65 -53
- package/fesm2022/primeng-paginator.mjs.map +1 -1
- package/fesm2022/primeng-panel.mjs +108 -79
- package/fesm2022/primeng-panel.mjs.map +1 -1
- package/fesm2022/primeng-panelmenu.mjs +385 -308
- package/fesm2022/primeng-panelmenu.mjs.map +1 -1
- package/fesm2022/primeng-passthrough.mjs +21 -0
- package/fesm2022/primeng-passthrough.mjs.map +1 -0
- package/fesm2022/primeng-password.mjs +80 -67
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +153 -95
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +44 -33
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-progressbar.mjs +37 -29
- package/fesm2022/primeng-progressbar.mjs.map +1 -1
- package/fesm2022/primeng-progressspinner.mjs +30 -23
- package/fesm2022/primeng-progressspinner.mjs.map +1 -1
- package/fesm2022/primeng-radiobutton.mjs +41 -32
- package/fesm2022/primeng-radiobutton.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +48 -38
- package/fesm2022/primeng-rating.mjs.map +1 -1
- package/fesm2022/primeng-ripple.mjs +17 -19
- package/fesm2022/primeng-ripple.mjs.map +1 -1
- package/fesm2022/primeng-scroller.mjs +50 -42
- package/fesm2022/primeng-scroller.mjs.map +1 -1
- package/fesm2022/primeng-scrollpanel.mjs +46 -39
- package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
- package/fesm2022/primeng-scrolltop.mjs +31 -21
- package/fesm2022/primeng-scrolltop.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +161 -82
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +36 -25
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-skeleton.mjs +24 -17
- package/fesm2022/primeng-skeleton.mjs.map +1 -1
- package/fesm2022/primeng-slider.mjs +43 -23
- package/fesm2022/primeng-slider.mjs.map +1 -1
- package/fesm2022/primeng-speeddial.mjs +70 -46
- package/fesm2022/primeng-speeddial.mjs.map +1 -1
- package/fesm2022/primeng-splitbutton.mjs +38 -21
- package/fesm2022/primeng-splitbutton.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +38 -34
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +163 -88
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-steps.mjs +14 -16
- package/fesm2022/primeng-steps.mjs.map +1 -1
- package/fesm2022/primeng-styleclass.mjs +7 -7
- package/fesm2022/primeng-table.mjs +714 -643
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabs.mjs +183 -116
- package/fesm2022/primeng-tabs.mjs.map +1 -1
- package/fesm2022/primeng-tag.mjs +35 -25
- package/fesm2022/primeng-tag.mjs.map +1 -1
- package/fesm2022/primeng-terminal.mjs +51 -45
- package/fesm2022/primeng-terminal.mjs.map +1 -1
- package/fesm2022/primeng-textarea.mjs +28 -23
- package/fesm2022/primeng-textarea.mjs.map +1 -1
- package/fesm2022/primeng-tieredmenu.mjs +136 -73
- package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
- package/fesm2022/primeng-timeline.mjs +42 -34
- package/fesm2022/primeng-timeline.mjs.map +1 -1
- package/fesm2022/primeng-toast.mjs +66 -61
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +39 -29
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-toggleswitch.mjs +39 -29
- package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
- package/fesm2022/primeng-toolbar.mjs +37 -29
- package/fesm2022/primeng-toolbar.mjs.map +1 -1
- package/fesm2022/primeng-tooltip.mjs +32 -33
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +185 -114
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +95 -49
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +283 -249
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-types-accordion.mjs +4 -0
- package/fesm2022/primeng-types-accordion.mjs.map +1 -0
- package/fesm2022/primeng-types-autocomplete.mjs +4 -0
- package/fesm2022/primeng-types-autocomplete.mjs.map +1 -0
- package/fesm2022/primeng-types-avatar.mjs +4 -0
- package/fesm2022/primeng-types-avatar.mjs.map +1 -0
- package/fesm2022/primeng-types-avatargroup.mjs +4 -0
- package/fesm2022/primeng-types-avatargroup.mjs.map +1 -0
- package/fesm2022/primeng-types-badge.mjs +4 -0
- package/fesm2022/primeng-types-badge.mjs.map +1 -0
- package/fesm2022/primeng-types-blockui.mjs +4 -0
- package/fesm2022/primeng-types-blockui.mjs.map +1 -0
- package/fesm2022/primeng-types-breadcrumb.mjs +4 -0
- package/fesm2022/primeng-types-breadcrumb.mjs.map +1 -0
- package/fesm2022/primeng-types-button.mjs +4 -0
- package/fesm2022/primeng-types-button.mjs.map +1 -0
- package/fesm2022/primeng-types-card.mjs +4 -0
- package/fesm2022/primeng-types-card.mjs.map +1 -0
- package/fesm2022/primeng-types-carousel.mjs +4 -0
- package/fesm2022/primeng-types-carousel.mjs.map +1 -0
- package/fesm2022/primeng-types-cascadeselect.mjs +4 -0
- package/fesm2022/primeng-types-cascadeselect.mjs.map +1 -0
- package/fesm2022/primeng-types-chart.mjs +4 -0
- package/fesm2022/primeng-types-chart.mjs.map +1 -0
- package/fesm2022/primeng-types-checkbox.mjs +4 -0
- package/fesm2022/primeng-types-checkbox.mjs.map +1 -0
- package/fesm2022/primeng-types-chip.mjs +4 -0
- package/fesm2022/primeng-types-chip.mjs.map +1 -0
- package/fesm2022/primeng-types-colorpicker.mjs +4 -0
- package/fesm2022/primeng-types-colorpicker.mjs.map +1 -0
- package/fesm2022/primeng-types-confirmdialog.mjs +4 -0
- package/fesm2022/primeng-types-confirmdialog.mjs.map +1 -0
- package/fesm2022/primeng-types-confirmpopup.mjs +4 -0
- package/fesm2022/primeng-types-confirmpopup.mjs.map +1 -0
- package/fesm2022/primeng-types-contextmenu.mjs +4 -0
- package/fesm2022/primeng-types-contextmenu.mjs.map +1 -0
- package/fesm2022/primeng-types-dataview.mjs +4 -0
- package/fesm2022/primeng-types-dataview.mjs.map +1 -0
- package/fesm2022/primeng-types-datepicker.mjs +4 -0
- package/fesm2022/primeng-types-datepicker.mjs.map +1 -0
- package/fesm2022/primeng-types-dialog.mjs +4 -0
- package/fesm2022/primeng-types-dialog.mjs.map +1 -0
- package/fesm2022/primeng-types-divider.mjs +4 -0
- package/fesm2022/primeng-types-divider.mjs.map +1 -0
- package/fesm2022/primeng-types-dock.mjs +4 -0
- package/fesm2022/primeng-types-dock.mjs.map +1 -0
- package/fesm2022/primeng-types-drawer.mjs +4 -0
- package/fesm2022/primeng-types-drawer.mjs.map +1 -0
- package/fesm2022/primeng-types-editor.mjs +4 -0
- package/fesm2022/primeng-types-editor.mjs.map +1 -0
- package/fesm2022/primeng-types-fieldset.mjs +4 -0
- package/fesm2022/primeng-types-fieldset.mjs.map +1 -0
- package/fesm2022/primeng-types-fileupload.mjs +4 -0
- package/fesm2022/primeng-types-fileupload.mjs.map +1 -0
- package/fesm2022/primeng-types-floatlabel.mjs +4 -0
- package/fesm2022/primeng-types-floatlabel.mjs.map +1 -0
- package/fesm2022/primeng-types-fluid.mjs +4 -0
- package/fesm2022/primeng-types-fluid.mjs.map +1 -0
- package/fesm2022/primeng-types-galleria.mjs +4 -0
- package/fesm2022/primeng-types-galleria.mjs.map +1 -0
- package/fesm2022/primeng-types-iconfield.mjs +4 -0
- package/fesm2022/primeng-types-iconfield.mjs.map +1 -0
- package/fesm2022/primeng-types-iftalabel.mjs +4 -0
- package/fesm2022/primeng-types-iftalabel.mjs.map +1 -0
- package/fesm2022/primeng-types-image.mjs +4 -0
- package/fesm2022/primeng-types-image.mjs.map +1 -0
- package/fesm2022/primeng-types-imagecompare.mjs +4 -0
- package/fesm2022/primeng-types-imagecompare.mjs.map +1 -0
- package/fesm2022/primeng-types-inplace.mjs +4 -0
- package/fesm2022/primeng-types-inplace.mjs.map +1 -0
- package/fesm2022/primeng-types-inputgroup.mjs +4 -0
- package/fesm2022/primeng-types-inputgroup.mjs.map +1 -0
- package/fesm2022/primeng-types-inputgroupaddon.mjs +4 -0
- package/fesm2022/primeng-types-inputgroupaddon.mjs.map +1 -0
- package/fesm2022/primeng-types-inputicon.mjs +4 -0
- package/fesm2022/primeng-types-inputicon.mjs.map +1 -0
- package/fesm2022/primeng-types-inputmask.mjs +4 -0
- package/fesm2022/primeng-types-inputmask.mjs.map +1 -0
- package/fesm2022/primeng-types-inputnumber.mjs +4 -0
- package/fesm2022/primeng-types-inputnumber.mjs.map +1 -0
- package/fesm2022/primeng-types-inputotp.mjs +4 -0
- package/fesm2022/primeng-types-inputotp.mjs.map +1 -0
- package/fesm2022/primeng-types-inputtext.mjs +4 -0
- package/fesm2022/primeng-types-inputtext.mjs.map +1 -0
- package/fesm2022/primeng-types-knob.mjs +4 -0
- package/fesm2022/primeng-types-knob.mjs.map +1 -0
- package/fesm2022/primeng-types-listbox.mjs +4 -0
- package/fesm2022/primeng-types-listbox.mjs.map +1 -0
- package/fesm2022/primeng-types-megamenu.mjs +4 -0
- package/fesm2022/primeng-types-megamenu.mjs.map +1 -0
- package/fesm2022/primeng-types-menu.mjs +4 -0
- package/fesm2022/primeng-types-menu.mjs.map +1 -0
- package/fesm2022/primeng-types-menubar.mjs +4 -0
- package/fesm2022/primeng-types-menubar.mjs.map +1 -0
- package/fesm2022/primeng-types-message.mjs +4 -0
- package/fesm2022/primeng-types-message.mjs.map +1 -0
- package/fesm2022/primeng-types-metergroup.mjs +4 -0
- package/fesm2022/primeng-types-metergroup.mjs.map +1 -0
- package/fesm2022/primeng-types-multiselect.mjs +4 -0
- package/fesm2022/primeng-types-multiselect.mjs.map +1 -0
- package/fesm2022/primeng-types-orderlist.mjs +4 -0
- package/fesm2022/primeng-types-orderlist.mjs.map +1 -0
- package/fesm2022/primeng-types-organizationchart.mjs +4 -0
- package/fesm2022/primeng-types-organizationchart.mjs.map +1 -0
- package/fesm2022/primeng-types-overlay.mjs +4 -0
- package/fesm2022/primeng-types-overlay.mjs.map +1 -0
- package/fesm2022/primeng-types-overlaybadge.mjs +4 -0
- package/fesm2022/primeng-types-overlaybadge.mjs.map +1 -0
- package/fesm2022/primeng-types-paginator.mjs +4 -0
- package/fesm2022/primeng-types-paginator.mjs.map +1 -0
- package/fesm2022/primeng-types-panel.mjs +4 -0
- package/fesm2022/primeng-types-panel.mjs.map +1 -0
- package/fesm2022/primeng-types-panelmenu.mjs +4 -0
- package/fesm2022/primeng-types-panelmenu.mjs.map +1 -0
- package/fesm2022/primeng-types-password.mjs +4 -0
- package/fesm2022/primeng-types-password.mjs.map +1 -0
- package/fesm2022/primeng-types-picklist.mjs +4 -0
- package/fesm2022/primeng-types-picklist.mjs.map +1 -0
- package/fesm2022/primeng-types-popover.mjs +4 -0
- package/fesm2022/primeng-types-popover.mjs.map +1 -0
- package/fesm2022/primeng-types-progressbar.mjs +4 -0
- package/fesm2022/primeng-types-progressbar.mjs.map +1 -0
- package/fesm2022/primeng-types-progressspinner.mjs +4 -0
- package/fesm2022/primeng-types-progressspinner.mjs.map +1 -0
- package/fesm2022/primeng-types-radiobutton.mjs +4 -0
- package/fesm2022/primeng-types-radiobutton.mjs.map +1 -0
- package/fesm2022/primeng-types-rating.mjs +4 -0
- package/fesm2022/primeng-types-rating.mjs.map +1 -0
- package/fesm2022/primeng-types-scroller.mjs +4 -0
- package/fesm2022/primeng-types-scroller.mjs.map +1 -0
- package/fesm2022/primeng-types-scrollpanel.mjs +4 -0
- package/fesm2022/primeng-types-scrollpanel.mjs.map +1 -0
- package/fesm2022/primeng-types-scrolltop.mjs +4 -0
- package/fesm2022/primeng-types-scrolltop.mjs.map +1 -0
- package/fesm2022/primeng-types-select.mjs +4 -0
- package/fesm2022/primeng-types-select.mjs.map +1 -0
- package/fesm2022/primeng-types-selectbutton.mjs +4 -0
- package/fesm2022/primeng-types-selectbutton.mjs.map +1 -0
- package/fesm2022/primeng-types-skeleton.mjs +4 -0
- package/fesm2022/primeng-types-skeleton.mjs.map +1 -0
- package/fesm2022/primeng-types-slider.mjs +4 -0
- package/fesm2022/primeng-types-slider.mjs.map +1 -0
- package/fesm2022/primeng-types-speeddial.mjs +4 -0
- package/fesm2022/primeng-types-speeddial.mjs.map +1 -0
- package/fesm2022/primeng-types-splitbutton.mjs +4 -0
- package/fesm2022/primeng-types-splitbutton.mjs.map +1 -0
- package/fesm2022/primeng-types-splitter.mjs +4 -0
- package/fesm2022/primeng-types-splitter.mjs.map +1 -0
- package/fesm2022/primeng-types-stepper.mjs +4 -0
- package/fesm2022/primeng-types-stepper.mjs.map +1 -0
- package/fesm2022/primeng-types-table.mjs +4 -0
- package/fesm2022/primeng-types-table.mjs.map +1 -0
- package/fesm2022/primeng-types-tabs.mjs +4 -0
- package/fesm2022/primeng-types-tabs.mjs.map +1 -0
- package/fesm2022/primeng-types-tag.mjs +4 -0
- package/fesm2022/primeng-types-tag.mjs.map +1 -0
- package/fesm2022/primeng-types-terminal.mjs +4 -0
- package/fesm2022/primeng-types-terminal.mjs.map +1 -0
- package/fesm2022/primeng-types-textarea.mjs +4 -0
- package/fesm2022/primeng-types-textarea.mjs.map +1 -0
- package/fesm2022/primeng-types-tieredmenu.mjs +4 -0
- package/fesm2022/primeng-types-tieredmenu.mjs.map +1 -0
- package/fesm2022/primeng-types-timeline.mjs +4 -0
- package/fesm2022/primeng-types-timeline.mjs.map +1 -0
- package/fesm2022/primeng-types-toast.mjs +4 -0
- package/fesm2022/primeng-types-toast.mjs.map +1 -0
- package/fesm2022/primeng-types-togglebutton.mjs +4 -0
- package/fesm2022/primeng-types-togglebutton.mjs.map +1 -0
- package/fesm2022/primeng-types-toggleswitch.mjs +4 -0
- package/fesm2022/primeng-types-toggleswitch.mjs.map +1 -0
- package/fesm2022/primeng-types-toolbar.mjs +4 -0
- package/fesm2022/primeng-types-toolbar.mjs.map +1 -0
- package/fesm2022/primeng-types-tooltip.mjs +4 -0
- package/fesm2022/primeng-types-tooltip.mjs.map +1 -0
- package/fesm2022/primeng-types-tree.mjs +4 -0
- package/fesm2022/primeng-types-tree.mjs.map +1 -0
- package/fesm2022/primeng-types-treeselect.mjs +4 -0
- package/fesm2022/primeng-types-treeselect.mjs.map +1 -0
- package/fesm2022/primeng-types-treetable.mjs +4 -0
- package/fesm2022/primeng-types-treetable.mjs.map +1 -0
- package/fesm2022/primeng-usestyle.mjs +3 -3
- package/fieldset/index.d.ts +16 -55
- package/fileupload/index.d.ts +18 -246
- package/floatlabel/index.d.ts +13 -6
- package/fluid/index.d.ts +9 -2
- package/focustrap/index.d.ts +2 -2
- package/galleria/index.d.ts +50 -132
- package/iconfield/index.d.ts +13 -5
- package/icons/arrowdown/index.d.ts +3 -4
- package/icons/arrowleft/index.d.ts +1 -1
- package/icons/arrowup/index.d.ts +1 -1
- package/icons/ban/index.d.ts +1 -1
- package/icons/exclamationtriangle/index.d.ts +3 -4
- package/icons/eyeslash/index.d.ts +1 -1
- package/icons/filter/index.d.ts +1 -1
- package/icons/filterslash/index.d.ts +1 -1
- package/icons/home/index.d.ts +1 -1
- package/icons/infocircle/index.d.ts +1 -1
- package/icons/pencil/index.d.ts +1 -1
- package/icons/plus/index.d.ts +1 -1
- package/icons/refresh/index.d.ts +1 -1
- package/icons/search/index.d.ts +1 -1
- package/icons/searchminus/index.d.ts +1 -1
- package/icons/searchplus/index.d.ts +1 -1
- package/icons/sortalt/index.d.ts +1 -1
- package/icons/sortamountdown/index.d.ts +1 -1
- package/icons/sortamountupalt/index.d.ts +1 -1
- package/icons/spinner/index.d.ts +1 -1
- package/icons/star/index.d.ts +1 -1
- package/icons/starfill/index.d.ts +1 -1
- package/icons/thlarge/index.d.ts +1 -1
- package/icons/timescircle/index.d.ts +1 -1
- package/icons/trash/index.d.ts +1 -1
- package/icons/undo/index.d.ts +1 -1
- package/icons/upload/index.d.ts +1 -1
- package/icons/windowmaximize/index.d.ts +1 -1
- package/icons/windowminimize/index.d.ts +1 -1
- package/iftalabel/index.d.ts +15 -8
- package/image/index.d.ts +14 -71
- package/imagecompare/index.d.ts +15 -9
- package/inplace/index.d.ts +16 -29
- package/inputgroup/index.d.ts +12 -6
- package/inputgroupaddon/index.d.ts +11 -5
- package/inputicon/index.d.ts +11 -4
- package/inputmask/index.d.ts +21 -29
- package/inputnumber/index.d.ts +17 -49
- package/inputotp/index.d.ts +14 -8
- package/inputtext/index.d.ts +14 -6
- package/keyfilter/index.d.ts +0 -5
- package/knob/index.d.ts +11 -5
- package/listbox/index.d.ts +19 -177
- package/megamenu/index.d.ts +23 -44
- package/menu/index.d.ts +22 -10
- package/menubar/index.d.ts +22 -52
- package/message/index.d.ts +15 -9
- package/metergroup/index.d.ts +17 -132
- package/multiselect/index.d.ts +23 -259
- package/orderlist/index.d.ts +16 -120
- package/organizationchart/index.d.ts +18 -68
- package/overlay/index.d.ts +36 -8
- package/overlaybadge/index.d.ts +11 -5
- package/package.json +582 -214
- package/paginator/index.d.ts +16 -47
- package/panel/index.d.ts +32 -55
- package/panelmenu/index.d.ts +24 -35
- package/passthrough/index.d.ts +14 -0
- package/password/index.d.ts +22 -12
- package/picklist/index.d.ts +17 -252
- package/popover/index.d.ts +15 -8
- package/progressbar/index.d.ts +14 -7
- package/progressspinner/index.d.ts +11 -5
- package/radiobutton/index.d.ts +15 -25
- package/rating/index.d.ts +15 -43
- package/ripple/index.d.ts +5 -5
- package/scroller/index.d.ts +20 -190
- package/scrollpanel/index.d.ts +17 -22
- package/scrolltop/index.d.ts +16 -28
- package/select/index.d.ts +24 -166
- package/selectbutton/index.d.ts +14 -53
- package/skeleton/index.d.ts +11 -5
- package/slider/index.d.ts +14 -47
- package/speeddial/index.d.ts +19 -54
- package/splitbutton/index.d.ts +15 -39
- package/splitter/index.d.ts +15 -44
- package/stepper/index.d.ts +50 -22
- package/steps/index.d.ts +5 -5
- package/table/index.d.ts +167 -829
- package/tabs/index.d.ts +37 -19
- package/tag/index.d.ts +13 -18
- package/terminal/index.d.ts +14 -8
- package/textarea/index.d.ts +13 -8
- package/tieredmenu/index.d.ts +25 -41
- package/timeline/index.d.ts +14 -51
- package/toast/index.d.ts +20 -65
- package/togglebutton/index.d.ts +15 -60
- package/toggleswitch/index.d.ts +15 -24
- package/toolbar/index.d.ts +14 -27
- package/tooltip/index.d.ts +13 -8
- package/tree/index.d.ts +24 -213
- package/treeselect/index.d.ts +17 -118
- package/treetable/index.d.ts +96 -548
- package/types/accordion/index.d.ts +88 -0
- package/types/autocomplete/index.d.ts +299 -0
- package/types/avatar/index.d.ts +40 -0
- package/types/avatargroup/index.d.ts +28 -0
- package/types/badge/index.d.ts +26 -0
- package/types/blockui/index.d.ts +39 -0
- package/types/breadcrumb/index.d.ts +70 -0
- package/types/button/index.d.ts +105 -0
- package/types/card/index.d.ts +75 -0
- package/types/carousel/index.d.ts +140 -0
- package/types/cascadeselect/index.d.ts +198 -0
- package/types/chart/index.d.ts +32 -0
- package/types/checkbox/index.d.ts +62 -0
- package/types/chip/index.d.ts +71 -0
- package/types/colorpicker/index.d.ts +73 -0
- package/types/confirmdialog/index.d.ts +121 -0
- package/types/confirmpopup/index.d.ts +82 -0
- package/types/contextmenu/index.d.ts +89 -0
- package/types/dataview/index.d.ts +234 -0
- package/types/datepicker/index.d.ts +464 -0
- package/types/dialog/index.d.ts +98 -0
- package/types/divider/index.d.ts +28 -0
- package/types/dock/index.d.ts +67 -0
- package/types/drawer/index.d.ts +77 -0
- package/types/editor/index.d.ts +210 -0
- package/types/fieldset/index.d.ts +92 -0
- package/types/fileupload/index.d.ts +576 -0
- package/types/floatlabel/index.d.ts +26 -0
- package/types/fluid/index.d.ts +28 -0
- package/types/galleria/index.d.ts +233 -0
- package/types/iconfield/index.d.ts +26 -0
- package/types/iftalabel/index.d.ts +26 -0
- package/types/image/index.d.ts +193 -0
- package/types/imagecompare/index.d.ts +28 -0
- package/types/inplace/index.d.ts +61 -0
- package/types/inputgroup/index.d.ts +28 -0
- package/types/inputgroupaddon/index.d.ts +28 -0
- package/types/inputicon/index.d.ts +26 -0
- package/types/inputmask/index.d.ts +56 -0
- package/types/inputnumber/index.d.ts +95 -0
- package/types/inputotp/index.d.ts +31 -0
- package/types/inputtext/index.d.ts +24 -0
- package/types/knob/index.d.ts +40 -0
- package/types/listbox/index.d.ts +280 -0
- package/types/megamenu/index.d.ts +122 -0
- package/types/menu/index.d.ts +101 -0
- package/types/menubar/index.d.ts +121 -0
- package/types/message/index.d.ts +48 -0
- package/types/metergroup/index.d.ts +178 -0
- package/types/multiselect/index.d.ts +362 -0
- package/types/orderlist/index.d.ts +164 -0
- package/types/organizationchart/index.d.ts +138 -0
- package/types/overlay/index.d.ts +28 -0
- package/types/overlaybadge/index.d.ts +34 -0
- package/types/paginator/index.d.ts +131 -0
- package/types/panel/index.d.ts +92 -0
- package/types/panelmenu/index.d.ts +114 -0
- package/types/password/index.d.ts +97 -0
- package/types/picklist/index.d.ts +353 -0
- package/types/popover/index.d.ts +52 -0
- package/types/progressbar/index.d.ts +54 -0
- package/types/progressspinner/index.d.ts +36 -0
- package/types/radiobutton/index.d.ts +51 -0
- package/types/rating/index.d.ts +82 -0
- package/types/scroller/index.d.ts +221 -0
- package/types/scrollpanel/index.d.ts +51 -0
- package/types/scrolltop/index.d.ts +52 -0
- package/types/select/index.d.ts +288 -0
- package/types/selectbutton/index.d.ts +77 -0
- package/types/skeleton/index.d.ts +28 -0
- package/types/slider/index.d.ts +78 -0
- package/types/speeddial/index.d.ts +82 -0
- package/types/splitbutton/index.d.ts +70 -0
- package/types/splitter/index.d.ts +70 -0
- package/types/stepper/index.d.ts +153 -0
- package/types/table/index.d.ts +884 -0
- package/types/tabs/index.d.ts +119 -0
- package/types/tag/index.d.ts +47 -0
- package/types/terminal/index.d.ts +60 -0
- package/types/textarea/index.d.ts +28 -0
- package/types/tieredmenu/index.d.ts +87 -0
- package/types/timeline/index.d.ts +95 -0
- package/types/toast/index.d.ts +114 -0
- package/types/togglebutton/index.d.ts +85 -0
- package/types/toggleswitch/index.d.ts +51 -0
- package/types/toolbar/index.d.ts +55 -0
- package/types/tooltip/index.d.ts +32 -0
- package/types/tree/index.d.ts +308 -0
- package/types/treeselect/index.d.ts +224 -0
- package/types/treetable/index.d.ts +640 -0
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
import * as i1 from '@angular/common';
|
|
3
|
-
import { isPlatformBrowser, DOCUMENT, CommonModule } from '@angular/common';
|
|
1
|
+
export * from 'primeng/types/table';
|
|
4
2
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable, EventEmitter, inject, NgZone, numberAttribute, booleanAttribute, ContentChild, ContentChildren, ViewChild, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, Directive,
|
|
6
|
-
import
|
|
3
|
+
import { Injectable, InjectionToken, EventEmitter, inject, NgZone, numberAttribute, booleanAttribute, ContentChild, ContentChildren, ViewChild, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, Directive, HostListener, Optional, input, ElementRef, NgModule } from '@angular/core';
|
|
4
|
+
import { style as style$1 } from '@primeuix/styles/datatable';
|
|
5
|
+
import { BaseStyle } from 'primeng/base';
|
|
6
|
+
import { trigger, transition, style as style$2, animate } from '@angular/animations';
|
|
7
|
+
import * as i2 from '@angular/common';
|
|
8
|
+
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
9
|
+
import * as i7 from '@angular/forms';
|
|
7
10
|
import { FormsModule } from '@angular/forms';
|
|
8
|
-
import * as
|
|
11
|
+
import * as i4 from 'primeng/api';
|
|
9
12
|
import { OverlayService, FilterService, FilterOperator, FilterMatchMode, PrimeTemplate, TranslationKeys, SharedModule } from 'primeng/api';
|
|
10
|
-
import * as
|
|
13
|
+
import * as i6 from 'primeng/badge';
|
|
11
14
|
import { BadgeModule } from 'primeng/badge';
|
|
12
|
-
import { BaseComponent } from 'primeng/basecomponent';
|
|
13
|
-
import * as
|
|
15
|
+
import { BaseComponent, PARENT_INSTANCE } from 'primeng/basecomponent';
|
|
16
|
+
import * as i1 from 'primeng/bind';
|
|
17
|
+
import { Bind, BindModule } from 'primeng/bind';
|
|
18
|
+
import * as i11 from 'primeng/button';
|
|
14
19
|
import { Button, ButtonModule } from 'primeng/button';
|
|
15
|
-
import * as
|
|
20
|
+
import * as i9 from 'primeng/checkbox';
|
|
16
21
|
import { CheckboxModule } from 'primeng/checkbox';
|
|
17
|
-
import * as
|
|
22
|
+
import * as i13 from 'primeng/datepicker';
|
|
18
23
|
import { DatePickerModule } from 'primeng/datepicker';
|
|
19
24
|
import { DomHandler, ConnectedOverlayScrollHandler } from 'primeng/dom';
|
|
20
25
|
import { ArrowDownIcon } from 'primeng/icons/arrowdown';
|
|
@@ -28,26 +33,24 @@ import { SortAmountDownIcon } from 'primeng/icons/sortamountdown';
|
|
|
28
33
|
import { SortAmountUpAltIcon } from 'primeng/icons/sortamountupalt';
|
|
29
34
|
import { SpinnerIcon } from 'primeng/icons/spinner';
|
|
30
35
|
import { TrashIcon } from 'primeng/icons/trash';
|
|
31
|
-
import * as
|
|
36
|
+
import * as i14 from 'primeng/inputnumber';
|
|
32
37
|
import { InputNumberModule } from 'primeng/inputnumber';
|
|
33
|
-
import * as
|
|
38
|
+
import * as i12 from 'primeng/inputtext';
|
|
34
39
|
import { InputTextModule } from 'primeng/inputtext';
|
|
35
|
-
import * as
|
|
40
|
+
import * as i3 from 'primeng/paginator';
|
|
36
41
|
import { PaginatorModule } from 'primeng/paginator';
|
|
37
|
-
import * as
|
|
42
|
+
import * as i8 from 'primeng/radiobutton';
|
|
38
43
|
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
39
|
-
import * as
|
|
44
|
+
import * as i5 from 'primeng/scroller';
|
|
40
45
|
import { ScrollerModule } from 'primeng/scroller';
|
|
41
|
-
import * as
|
|
46
|
+
import * as i10 from 'primeng/select';
|
|
42
47
|
import { SelectModule } from 'primeng/select';
|
|
43
48
|
import { SelectButtonModule } from 'primeng/selectbutton';
|
|
44
49
|
import { UniqueComponentId, ObjectUtils, ZIndexUtils } from 'primeng/utils';
|
|
45
50
|
import { Subject } from 'rxjs';
|
|
46
|
-
import { style } from '@primeuix/styles/datatable';
|
|
47
|
-
import { BaseStyle } from 'primeng/base';
|
|
48
51
|
|
|
49
|
-
const
|
|
50
|
-
${style}
|
|
52
|
+
const style = /*css*/ `
|
|
53
|
+
${style$1}
|
|
51
54
|
|
|
52
55
|
/* For PrimeNG */
|
|
53
56
|
.p-datatable-scrollable-table > .p-datatable-thead {
|
|
@@ -270,13 +273,13 @@ const inlineStyles = {
|
|
|
270
273
|
};
|
|
271
274
|
class TableStyle extends BaseStyle {
|
|
272
275
|
name = 'datatable';
|
|
273
|
-
|
|
276
|
+
style = style;
|
|
274
277
|
classes = classes;
|
|
275
278
|
inlineStyles = inlineStyles;
|
|
276
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
277
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
279
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
280
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableStyle });
|
|
278
281
|
}
|
|
279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableStyle, decorators: [{
|
|
280
283
|
type: Injectable
|
|
281
284
|
}] });
|
|
282
285
|
/**
|
|
@@ -508,6 +511,7 @@ var TableClasses;
|
|
|
508
511
|
TableClasses["rowEditorCancel"] = "p-datatable-row-editor-cancel";
|
|
509
512
|
})(TableClasses || (TableClasses = {}));
|
|
510
513
|
|
|
514
|
+
const TABLE_INSTANCE = new InjectionToken('TABLE_INSTANCE');
|
|
511
515
|
class TableService {
|
|
512
516
|
sortSource = new Subject();
|
|
513
517
|
selectionSource = new Subject();
|
|
@@ -534,10 +538,10 @@ class TableService {
|
|
|
534
538
|
onColumnsChange(columns) {
|
|
535
539
|
this.columnsSource.next(columns);
|
|
536
540
|
}
|
|
537
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
538
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
541
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
542
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableService });
|
|
539
543
|
}
|
|
540
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableService, decorators: [{
|
|
541
545
|
type: Injectable
|
|
542
546
|
}] });
|
|
543
547
|
/**
|
|
@@ -1275,8 +1279,11 @@ class Table extends BaseComponent {
|
|
|
1275
1279
|
tableService = inject(TableService);
|
|
1276
1280
|
zone = inject(NgZone);
|
|
1277
1281
|
_componentStyle = inject(TableStyle);
|
|
1278
|
-
|
|
1279
|
-
|
|
1282
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
1283
|
+
onAfterViewChecked() {
|
|
1284
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1285
|
+
}
|
|
1286
|
+
onInit() {
|
|
1280
1287
|
if (this.lazy && this.lazyLoadOnInit) {
|
|
1281
1288
|
if (!this.virtualScroll) {
|
|
1282
1289
|
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
@@ -1290,7 +1297,7 @@ class Table extends BaseComponent {
|
|
|
1290
1297
|
}
|
|
1291
1298
|
this.initialized = true;
|
|
1292
1299
|
}
|
|
1293
|
-
|
|
1300
|
+
onAfterContentInit() {
|
|
1294
1301
|
this._templates.forEach((item) => {
|
|
1295
1302
|
switch (item.getType()) {
|
|
1296
1303
|
case 'caption':
|
|
@@ -1392,16 +1399,14 @@ class Table extends BaseComponent {
|
|
|
1392
1399
|
}
|
|
1393
1400
|
});
|
|
1394
1401
|
}
|
|
1395
|
-
|
|
1396
|
-
super.ngAfterViewInit();
|
|
1402
|
+
onAfterViewInit() {
|
|
1397
1403
|
if (isPlatformBrowser(this.platformId)) {
|
|
1398
1404
|
if (this.isStateful() && this.resizableColumns) {
|
|
1399
1405
|
this.restoreColumnWidths();
|
|
1400
1406
|
}
|
|
1401
1407
|
}
|
|
1402
1408
|
}
|
|
1403
|
-
|
|
1404
|
-
super.ngOnChanges(simpleChange);
|
|
1409
|
+
onChanges(simpleChange) {
|
|
1405
1410
|
if (simpleChange.totalRecords && simpleChange.totalRecords.firstChange) {
|
|
1406
1411
|
this._totalRecords = simpleChange.totalRecords.currentValue;
|
|
1407
1412
|
}
|
|
@@ -3008,26 +3013,28 @@ class Table extends BaseComponent {
|
|
|
3008
3013
|
this.styleElement = null;
|
|
3009
3014
|
}
|
|
3010
3015
|
}
|
|
3011
|
-
|
|
3016
|
+
ngAfterViewChecked() {
|
|
3017
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
3018
|
+
}
|
|
3019
|
+
onDestroy() {
|
|
3012
3020
|
this.unbindDocumentEditListener();
|
|
3013
3021
|
this.editingCell = null;
|
|
3014
3022
|
this.initialized = null;
|
|
3015
3023
|
this.destroyStyleElement();
|
|
3016
3024
|
this.destroyResponsiveStyle();
|
|
3017
|
-
super.ngOnDestroy();
|
|
3018
3025
|
}
|
|
3019
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3020
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.
|
|
3021
|
-
<div [class]="cx('mask')" *ngIf="loading && showLoader">
|
|
3022
|
-
<i *ngIf="loadingIcon" [class]="cn(cx('loadingIcon'), loadingIcon)"></i>
|
|
3026
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Table, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3027
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.4", type: Table, isStandalone: false, selector: "p-table", inputs: { frozenColumns: "frozenColumns", frozenValue: "frozenValue", styleClass: "styleClass", tableStyle: "tableStyle", tableStyleClass: "tableStyleClass", paginator: ["paginator", "paginator", booleanAttribute], pageLinks: ["pageLinks", "pageLinks", numberAttribute], rowsPerPageOptions: "rowsPerPageOptions", alwaysShowPaginator: ["alwaysShowPaginator", "alwaysShowPaginator", booleanAttribute], paginatorPosition: "paginatorPosition", paginatorStyleClass: "paginatorStyleClass", paginatorDropdownAppendTo: "paginatorDropdownAppendTo", paginatorDropdownScrollHeight: "paginatorDropdownScrollHeight", currentPageReportTemplate: "currentPageReportTemplate", showCurrentPageReport: ["showCurrentPageReport", "showCurrentPageReport", booleanAttribute], showJumpToPageDropdown: ["showJumpToPageDropdown", "showJumpToPageDropdown", booleanAttribute], showJumpToPageInput: ["showJumpToPageInput", "showJumpToPageInput", booleanAttribute], showFirstLastIcon: ["showFirstLastIcon", "showFirstLastIcon", booleanAttribute], showPageLinks: ["showPageLinks", "showPageLinks", booleanAttribute], defaultSortOrder: ["defaultSortOrder", "defaultSortOrder", numberAttribute], sortMode: "sortMode", resetPageOnSort: ["resetPageOnSort", "resetPageOnSort", booleanAttribute], selectionMode: "selectionMode", selectionPageOnly: ["selectionPageOnly", "selectionPageOnly", booleanAttribute], contextMenuSelection: "contextMenuSelection", contextMenuSelectionMode: "contextMenuSelectionMode", dataKey: "dataKey", metaKeySelection: ["metaKeySelection", "metaKeySelection", booleanAttribute], rowSelectable: "rowSelectable", rowTrackBy: "rowTrackBy", lazy: ["lazy", "lazy", booleanAttribute], lazyLoadOnInit: ["lazyLoadOnInit", "lazyLoadOnInit", booleanAttribute], compareSelectionBy: "compareSelectionBy", csvSeparator: "csvSeparator", exportFilename: "exportFilename", filters: "filters", globalFilterFields: "globalFilterFields", filterDelay: ["filterDelay", "filterDelay", numberAttribute], filterLocale: "filterLocale", expandedRowKeys: "expandedRowKeys", editingRowKeys: "editingRowKeys", rowExpandMode: "rowExpandMode", scrollable: ["scrollable", "scrollable", booleanAttribute], rowGroupMode: "rowGroupMode", scrollHeight: "scrollHeight", virtualScroll: ["virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: ["virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", virtualScrollDelay: ["virtualScrollDelay", "virtualScrollDelay", numberAttribute], frozenWidth: "frozenWidth", contextMenu: "contextMenu", resizableColumns: ["resizableColumns", "resizableColumns", booleanAttribute], columnResizeMode: "columnResizeMode", reorderableColumns: ["reorderableColumns", "reorderableColumns", booleanAttribute], loading: ["loading", "loading", booleanAttribute], loadingIcon: "loadingIcon", showLoader: ["showLoader", "showLoader", booleanAttribute], rowHover: ["rowHover", "rowHover", booleanAttribute], customSort: ["customSort", "customSort", booleanAttribute], showInitialSortBadge: ["showInitialSortBadge", "showInitialSortBadge", booleanAttribute], exportFunction: "exportFunction", exportHeader: "exportHeader", stateKey: "stateKey", stateStorage: "stateStorage", editMode: "editMode", groupRowsBy: "groupRowsBy", size: "size", showGridlines: ["showGridlines", "showGridlines", booleanAttribute], stripedRows: ["stripedRows", "stripedRows", booleanAttribute], groupRowsByOrder: ["groupRowsByOrder", "groupRowsByOrder", numberAttribute], responsiveLayout: "responsiveLayout", breakpoint: "breakpoint", paginatorLocale: "paginatorLocale", value: "value", columns: "columns", first: "first", rows: "rows", totalRecords: "totalRecords", sortField: "sortField", sortOrder: "sortOrder", multiSortMeta: "multiSortMeta", selection: "selection", selectAll: "selectAll" }, outputs: { contextMenuSelectionChange: "contextMenuSelectionChange", selectAllChange: "selectAllChange", selectionChange: "selectionChange", onRowSelect: "onRowSelect", onRowUnselect: "onRowUnselect", onPage: "onPage", onSort: "onSort", onFilter: "onFilter", onLazyLoad: "onLazyLoad", onRowExpand: "onRowExpand", onRowCollapse: "onRowCollapse", onContextMenuSelect: "onContextMenuSelect", onColResize: "onColResize", onColReorder: "onColReorder", onRowReorder: "onRowReorder", onEditInit: "onEditInit", onEditComplete: "onEditComplete", onEditCancel: "onEditCancel", onHeaderCheckboxToggle: "onHeaderCheckboxToggle", sortFunction: "sortFunction", firstChange: "firstChange", rowsChange: "rowsChange", onStateSave: "onStateSave", onStateRestore: "onStateRestore" }, host: { properties: { "class": "cn(cx('root'), styleClass)" } }, providers: [TableService, TableStyle, { provide: TABLE_INSTANCE, useExisting: Table }, { provide: PARENT_INSTANCE, useExisting: Table }], queries: [{ propertyName: "_headerTemplate", first: true, predicate: ["header"] }, { propertyName: "_headerGroupedTemplate", first: true, predicate: ["headergrouped"] }, { propertyName: "_bodyTemplate", first: true, predicate: ["body"] }, { propertyName: "_loadingBodyTemplate", first: true, predicate: ["loadingbody"] }, { propertyName: "_captionTemplate", first: true, predicate: ["caption"] }, { propertyName: "_footerTemplate", first: true, predicate: ["footer"] }, { propertyName: "_footerGroupedTemplate", first: true, predicate: ["footergrouped"] }, { propertyName: "_summaryTemplate", first: true, predicate: ["summary"] }, { propertyName: "_colGroupTemplate", first: true, predicate: ["colgroup"] }, { propertyName: "_expandedRowTemplate", first: true, predicate: ["expandedrow"] }, { propertyName: "_groupHeaderTemplate", first: true, predicate: ["groupheader"] }, { propertyName: "_groupFooterTemplate", first: true, predicate: ["groupfooter"] }, { propertyName: "_frozenExpandedRowTemplate", first: true, predicate: ["frozenexpandedrow"] }, { propertyName: "_frozenHeaderTemplate", first: true, predicate: ["frozenheader"] }, { propertyName: "_frozenBodyTemplate", first: true, predicate: ["frozenbody"] }, { propertyName: "_frozenFooterTemplate", first: true, predicate: ["frozenfooter"] }, { propertyName: "_frozenColGroupTemplate", first: true, predicate: ["frozencolgroup"] }, { propertyName: "_emptyMessageTemplate", first: true, predicate: ["emptymessage"] }, { propertyName: "_paginatorLeftTemplate", first: true, predicate: ["paginatorleft"] }, { propertyName: "_paginatorRightTemplate", first: true, predicate: ["paginatorright"] }, { propertyName: "_paginatorDropdownItemTemplate", first: true, predicate: ["paginatordropdownitem"] }, { propertyName: "_loadingIconTemplate", first: true, predicate: ["loadingicon"] }, { propertyName: "_reorderIndicatorUpIconTemplate", first: true, predicate: ["reorderindicatorupicon"] }, { propertyName: "_reorderIndicatorDownIconTemplate", first: true, predicate: ["reorderindicatordownicon"] }, { propertyName: "_sortIconTemplate", first: true, predicate: ["sorticon"] }, { propertyName: "_checkboxIconTemplate", first: true, predicate: ["checkboxicon"] }, { propertyName: "_headerCheckboxIconTemplate", first: true, predicate: ["headercheckboxicon"] }, { propertyName: "_paginatorDropdownIconTemplate", first: true, predicate: ["paginatordropdownicon"] }, { propertyName: "_paginatorFirstPageLinkIconTemplate", first: true, predicate: ["paginatorfirstpagelinkicon"] }, { propertyName: "_paginatorLastPageLinkIconTemplate", first: true, predicate: ["paginatorlastpagelinkicon"] }, { propertyName: "_paginatorPreviousPageLinkIconTemplate", first: true, predicate: ["paginatorpreviouspagelinkicon"] }, { propertyName: "_paginatorNextPageLinkIconTemplate", first: true, predicate: ["paginatornextpagelinkicon"] }, { propertyName: "_templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "resizeHelperViewChild", first: true, predicate: ["resizeHelper"], descendants: true }, { propertyName: "reorderIndicatorUpViewChild", first: true, predicate: ["reorderIndicatorUp"], descendants: true }, { propertyName: "reorderIndicatorDownViewChild", first: true, predicate: ["reorderIndicatorDown"], descendants: true }, { propertyName: "wrapperViewChild", first: true, predicate: ["wrapper"], descendants: true }, { propertyName: "tableViewChild", first: true, predicate: ["table"], descendants: true }, { propertyName: "tableHeaderViewChild", first: true, predicate: ["thead"], descendants: true }, { propertyName: "tableFooterViewChild", first: true, predicate: ["tfoot"], descendants: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
3028
|
+
<div [class]="cx('mask')" [pBind]="ptm('mask')" *ngIf="loading && showLoader">
|
|
3029
|
+
<i *ngIf="loadingIcon" [class]="cn(cx('loadingIcon'), loadingIcon)" [pBind]="ptm('loadingIcon')"></i>
|
|
3023
3030
|
<ng-container *ngIf="!loadingIcon">
|
|
3024
|
-
<svg data-p-icon="spinner" *ngIf="!loadingIconTemplate && !_loadingIconTemplate" [spin]="true" [class]="cx('loadingIcon')" />
|
|
3025
|
-
<span *ngIf="loadingIconTemplate || _loadingIconTemplate" [class]="cx('loadingIcon')">
|
|
3031
|
+
<svg data-p-icon="spinner" *ngIf="!loadingIconTemplate && !_loadingIconTemplate" [spin]="true" [class]="cx('loadingIcon')" [pBind]="ptm('loadingIcon')" />
|
|
3032
|
+
<span *ngIf="loadingIconTemplate || _loadingIconTemplate" [class]="cx('loadingIcon')" [pBind]="ptm('loadingIcon')">
|
|
3026
3033
|
<ng-template *ngTemplateOutlet="loadingIconTemplate || _loadingIconTemplate"></ng-template>
|
|
3027
3034
|
</span>
|
|
3028
3035
|
</ng-container>
|
|
3029
3036
|
</div>
|
|
3030
|
-
<div *ngIf="captionTemplate || _captionTemplate" [class]="cx('header')">
|
|
3037
|
+
<div *ngIf="captionTemplate || _captionTemplate" [class]="cx('header')" [pBind]="ptm('header')">
|
|
3031
3038
|
<ng-container *ngTemplateOutlet="captionTemplate || _captionTemplate"></ng-container>
|
|
3032
3039
|
</div>
|
|
3033
3040
|
<p-paginator
|
|
@@ -3052,6 +3059,7 @@ class Table extends BaseComponent {
|
|
|
3052
3059
|
[showPageLinks]="showPageLinks"
|
|
3053
3060
|
[styleClass]="cx('pcPaginator') + ' ' + paginatorStyleClass && paginatorStyleClass"
|
|
3054
3061
|
[locale]="paginatorLocale"
|
|
3062
|
+
[pt]="ptm('pcPaginator')"
|
|
3055
3063
|
>
|
|
3056
3064
|
<ng-template pTemplate="dropdownicon" *ngIf="paginatorDropdownIconTemplate || _paginatorDropdownIconTemplate">
|
|
3057
3065
|
<ng-container *ngTemplateOutlet="paginatorDropdownIconTemplate || _paginatorDropdownIconTemplate"></ng-container>
|
|
@@ -3074,7 +3082,7 @@ class Table extends BaseComponent {
|
|
|
3074
3082
|
</ng-template>
|
|
3075
3083
|
</p-paginator>
|
|
3076
3084
|
|
|
3077
|
-
<div #wrapper [class]="cx('tableContainer')" [ngStyle]="sx('tableContainer')">
|
|
3085
|
+
<div #wrapper [class]="cx('tableContainer')" [ngStyle]="sx('tableContainer')" [pBind]="ptm('tableContainer')">
|
|
3078
3086
|
<p-scroller
|
|
3079
3087
|
#scroller
|
|
3080
3088
|
*ngIf="virtualScroll"
|
|
@@ -3095,6 +3103,7 @@ class Table extends BaseComponent {
|
|
|
3095
3103
|
[showSpacer]="false"
|
|
3096
3104
|
[showLoader]="loadingBodyTemplate || _loadingBodyTemplate"
|
|
3097
3105
|
[options]="virtualScrollOptions"
|
|
3106
|
+
[pt]="ptm('virtualScroller')"
|
|
3098
3107
|
>
|
|
3099
3108
|
<ng-template #content let-items let-scrollerOptions="options">
|
|
3100
3109
|
<ng-container
|
|
@@ -3121,9 +3130,9 @@ class Table extends BaseComponent {
|
|
|
3121
3130
|
</ng-container>
|
|
3122
3131
|
|
|
3123
3132
|
<ng-template #buildInTable let-items let-scrollerOptions="options">
|
|
3124
|
-
<table #table role="table" [class]="cn(cx('table'), tableStyleClass)" [style]="tableStyle" [attr.id]="id + '-table'">
|
|
3133
|
+
<table #table role="table" [class]="cn(cx('table'), tableStyleClass)" [pBind]="ptm('table')" [style]="tableStyle" [attr.id]="id + '-table'">
|
|
3125
3134
|
<ng-container *ngTemplateOutlet="colGroupTemplate || _colGroupTemplate; context: { $implicit: scrollerOptions.columns }"></ng-container>
|
|
3126
|
-
<thead role="rowgroup" #thead [class]="cx('thead')" [ngStyle]="sx('thead')">
|
|
3135
|
+
<thead role="rowgroup" #thead [class]="cx('thead')" [ngStyle]="sx('thead')" [pBind]="ptm('thead')">
|
|
3127
3136
|
<ng-container
|
|
3128
3137
|
*ngTemplateOutlet="
|
|
3129
3138
|
headerGroupedTemplate || headerTemplate || _headerTemplate;
|
|
@@ -3136,6 +3145,7 @@ class Table extends BaseComponent {
|
|
|
3136
3145
|
<tbody
|
|
3137
3146
|
role="rowgroup"
|
|
3138
3147
|
[class]="cx('tbody')"
|
|
3148
|
+
[pBind]="ptm('tbody')"
|
|
3139
3149
|
*ngIf="frozenValue || frozenBodyTemplate || _frozenBodyTemplate"
|
|
3140
3150
|
[value]="frozenValue"
|
|
3141
3151
|
[frozenRows]="true"
|
|
@@ -3146,6 +3156,7 @@ class Table extends BaseComponent {
|
|
|
3146
3156
|
<tbody
|
|
3147
3157
|
role="rowgroup"
|
|
3148
3158
|
[class]="cx('tbody', scrollerOptions.contentStyleClass)"
|
|
3159
|
+
[pBind]="ptm('tbody')"
|
|
3149
3160
|
[style]="scrollerOptions.contentStyle"
|
|
3150
3161
|
[value]="dataToRender(scrollerOptions.rows)"
|
|
3151
3162
|
[pTableBody]="scrollerOptions.columns"
|
|
@@ -3157,8 +3168,9 @@ class Table extends BaseComponent {
|
|
|
3157
3168
|
*ngIf="scrollerOptions.spacerStyle"
|
|
3158
3169
|
[style]="'height: calc(' + scrollerOptions.spacerStyle.height + ' - ' + scrollerOptions.rows.length * scrollerOptions.itemSize + 'px);'"
|
|
3159
3170
|
[class]="cx('virtualScrollerSpacer')"
|
|
3171
|
+
[pBind]="ptm('virtualScrollerSpacer')"
|
|
3160
3172
|
></tbody>
|
|
3161
|
-
<tfoot role="rowgroup" *ngIf="footerGroupedTemplate || footerTemplate || _footerTemplate || _footerGroupedTemplate" #tfoot [ngClass]="cx('footer')" [ngStyle]="sx('tfoot')">
|
|
3173
|
+
<tfoot role="rowgroup" *ngIf="footerGroupedTemplate || footerTemplate || _footerTemplate || _footerGroupedTemplate" #tfoot [ngClass]="cx('footer')" [ngStyle]="sx('tfoot')" [pBind]="ptm('tfoot')">
|
|
3162
3174
|
<ng-container
|
|
3163
3175
|
*ngTemplateOutlet="
|
|
3164
3176
|
footerGroupedTemplate || footerTemplate || _footerTemplate || _footerGroupedTemplate;
|
|
@@ -3194,6 +3206,7 @@ class Table extends BaseComponent {
|
|
|
3194
3206
|
[showPageLinks]="showPageLinks"
|
|
3195
3207
|
[styleClass]="cx('pcPaginator') + ' ' + paginatorStyleClass && paginatorStyleClass"
|
|
3196
3208
|
[locale]="paginatorLocale"
|
|
3209
|
+
[pt]="ptm('pcPaginator')"
|
|
3197
3210
|
>
|
|
3198
3211
|
<ng-template pTemplate="dropdownicon" *ngIf="paginatorDropdownIconTemplate || _paginatorDropdownIconTemplate">
|
|
3199
3212
|
<ng-container *ngTemplateOutlet="paginatorDropdownIconTemplate || _paginatorDropdownIconTemplate"></ng-container>
|
|
@@ -3216,37 +3229,37 @@ class Table extends BaseComponent {
|
|
|
3216
3229
|
</ng-template>
|
|
3217
3230
|
</p-paginator>
|
|
3218
3231
|
|
|
3219
|
-
<div *ngIf="summaryTemplate || _summaryTemplate" [ngClass]="cx('footer')">
|
|
3232
|
+
<div *ngIf="summaryTemplate || _summaryTemplate" [ngClass]="cx('footer')" [pBind]="ptm('footer')">
|
|
3220
3233
|
<ng-container *ngTemplateOutlet="summaryTemplate || _summaryTemplate"></ng-container>
|
|
3221
3234
|
</div>
|
|
3222
3235
|
|
|
3223
|
-
<div #resizeHelper [ngClass]="cx('columnResizeIndicator')" [style.display]="'none'" *ngIf="resizableColumns"></div>
|
|
3224
|
-
<span #reorderIndicatorUp [ngClass]="cx('rowReorderIndicatorUp')" [style.display]="'none'" *ngIf="reorderableColumns">
|
|
3225
|
-
<svg data-p-icon="arrow-down" *ngIf="!reorderIndicatorUpIconTemplate && !_reorderIndicatorUpIconTemplate" />
|
|
3236
|
+
<div #resizeHelper [ngClass]="cx('columnResizeIndicator')" [pBind]="ptm('columnResizeIndicator')" [style.display]="'none'" *ngIf="resizableColumns"></div>
|
|
3237
|
+
<span #reorderIndicatorUp [ngClass]="cx('rowReorderIndicatorUp')" [pBind]="ptm('rowReorderIndicatorUp')" [style.display]="'none'" *ngIf="reorderableColumns">
|
|
3238
|
+
<svg data-p-icon="arrow-down" *ngIf="!reorderIndicatorUpIconTemplate && !_reorderIndicatorUpIconTemplate" [pBind]="ptm('rowReorderIndicatorUp')['icon']" />
|
|
3226
3239
|
<ng-template *ngTemplateOutlet="reorderIndicatorUpIconTemplate || _reorderIndicatorUpIconTemplate"></ng-template>
|
|
3227
3240
|
</span>
|
|
3228
|
-
<span #reorderIndicatorDown [ngClass]="cx('rowReorderIndicatorDown')" [style.display]="'none'" *ngIf="reorderableColumns">
|
|
3229
|
-
<svg data-p-icon="arrow-up" *ngIf="!reorderIndicatorDownIconTemplate && !_reorderIndicatorDownIconTemplate" />
|
|
3241
|
+
<span #reorderIndicatorDown [ngClass]="cx('rowReorderIndicatorDown')" [pBind]="ptm('rowReorderIndicatorDown')" [style.display]="'none'" *ngIf="reorderableColumns">
|
|
3242
|
+
<svg data-p-icon="arrow-up" *ngIf="!reorderIndicatorDownIconTemplate && !_reorderIndicatorDownIconTemplate" [pBind]="ptm('rowReorderIndicatorDown')['icon']" />
|
|
3230
3243
|
<ng-template *ngTemplateOutlet="reorderIndicatorDownIconTemplate || _reorderIndicatorDownIconTemplate"></ng-template>
|
|
3231
3244
|
</span>
|
|
3232
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() =>
|
|
3245
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i0.forwardRef(() => i3.Paginator), selector: "p-paginator", inputs: ["pageLinkSize", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "jumpToPageItemTemplate", "showPageLinks", "locale", "dropdownItemTemplate", "first", "appendTo"], outputs: ["onPageChange"] }, { kind: "directive", type: i0.forwardRef(() => i4.PrimeTemplate), selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i0.forwardRef(() => i5.Scroller), selector: "p-scroller, p-virtualscroller, p-virtual-scroller, p-virtualScroller", inputs: ["hostName", "id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "component", type: i0.forwardRef(() => ArrowDownIcon), selector: "[data-p-icon=\"arrow-down\"]" }, { kind: "component", type: i0.forwardRef(() => ArrowUpIcon), selector: "[data-p-icon=\"arrow-up\"]" }, { kind: "component", type: i0.forwardRef(() => SpinnerIcon), selector: "[data-p-icon=\"spinner\"]" }, { kind: "directive", type: i0.forwardRef(() => i1.Bind), selector: "[pBind]", inputs: ["pBind"] }, { kind: "component", type: i0.forwardRef(() => TableBody), selector: "[pTableBody]", inputs: ["pTableBody", "pTableBodyTemplate", "value", "frozen", "frozenRows", "scrollerOptions"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
3233
3246
|
}
|
|
3234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Table, decorators: [{
|
|
3235
3248
|
type: Component,
|
|
3236
3249
|
args: [{
|
|
3237
3250
|
selector: 'p-table',
|
|
3238
3251
|
standalone: false,
|
|
3239
3252
|
template: `
|
|
3240
|
-
<div [class]="cx('mask')" *ngIf="loading && showLoader">
|
|
3241
|
-
<i *ngIf="loadingIcon" [class]="cn(cx('loadingIcon'), loadingIcon)"></i>
|
|
3253
|
+
<div [class]="cx('mask')" [pBind]="ptm('mask')" *ngIf="loading && showLoader">
|
|
3254
|
+
<i *ngIf="loadingIcon" [class]="cn(cx('loadingIcon'), loadingIcon)" [pBind]="ptm('loadingIcon')"></i>
|
|
3242
3255
|
<ng-container *ngIf="!loadingIcon">
|
|
3243
|
-
<svg data-p-icon="spinner" *ngIf="!loadingIconTemplate && !_loadingIconTemplate" [spin]="true" [class]="cx('loadingIcon')" />
|
|
3244
|
-
<span *ngIf="loadingIconTemplate || _loadingIconTemplate" [class]="cx('loadingIcon')">
|
|
3256
|
+
<svg data-p-icon="spinner" *ngIf="!loadingIconTemplate && !_loadingIconTemplate" [spin]="true" [class]="cx('loadingIcon')" [pBind]="ptm('loadingIcon')" />
|
|
3257
|
+
<span *ngIf="loadingIconTemplate || _loadingIconTemplate" [class]="cx('loadingIcon')" [pBind]="ptm('loadingIcon')">
|
|
3245
3258
|
<ng-template *ngTemplateOutlet="loadingIconTemplate || _loadingIconTemplate"></ng-template>
|
|
3246
3259
|
</span>
|
|
3247
3260
|
</ng-container>
|
|
3248
3261
|
</div>
|
|
3249
|
-
<div *ngIf="captionTemplate || _captionTemplate" [class]="cx('header')">
|
|
3262
|
+
<div *ngIf="captionTemplate || _captionTemplate" [class]="cx('header')" [pBind]="ptm('header')">
|
|
3250
3263
|
<ng-container *ngTemplateOutlet="captionTemplate || _captionTemplate"></ng-container>
|
|
3251
3264
|
</div>
|
|
3252
3265
|
<p-paginator
|
|
@@ -3271,6 +3284,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3271
3284
|
[showPageLinks]="showPageLinks"
|
|
3272
3285
|
[styleClass]="cx('pcPaginator') + ' ' + paginatorStyleClass && paginatorStyleClass"
|
|
3273
3286
|
[locale]="paginatorLocale"
|
|
3287
|
+
[pt]="ptm('pcPaginator')"
|
|
3274
3288
|
>
|
|
3275
3289
|
<ng-template pTemplate="dropdownicon" *ngIf="paginatorDropdownIconTemplate || _paginatorDropdownIconTemplate">
|
|
3276
3290
|
<ng-container *ngTemplateOutlet="paginatorDropdownIconTemplate || _paginatorDropdownIconTemplate"></ng-container>
|
|
@@ -3293,7 +3307,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3293
3307
|
</ng-template>
|
|
3294
3308
|
</p-paginator>
|
|
3295
3309
|
|
|
3296
|
-
<div #wrapper [class]="cx('tableContainer')" [ngStyle]="sx('tableContainer')">
|
|
3310
|
+
<div #wrapper [class]="cx('tableContainer')" [ngStyle]="sx('tableContainer')" [pBind]="ptm('tableContainer')">
|
|
3297
3311
|
<p-scroller
|
|
3298
3312
|
#scroller
|
|
3299
3313
|
*ngIf="virtualScroll"
|
|
@@ -3314,6 +3328,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3314
3328
|
[showSpacer]="false"
|
|
3315
3329
|
[showLoader]="loadingBodyTemplate || _loadingBodyTemplate"
|
|
3316
3330
|
[options]="virtualScrollOptions"
|
|
3331
|
+
[pt]="ptm('virtualScroller')"
|
|
3317
3332
|
>
|
|
3318
3333
|
<ng-template #content let-items let-scrollerOptions="options">
|
|
3319
3334
|
<ng-container
|
|
@@ -3340,9 +3355,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3340
3355
|
</ng-container>
|
|
3341
3356
|
|
|
3342
3357
|
<ng-template #buildInTable let-items let-scrollerOptions="options">
|
|
3343
|
-
<table #table role="table" [class]="cn(cx('table'), tableStyleClass)" [style]="tableStyle" [attr.id]="id + '-table'">
|
|
3358
|
+
<table #table role="table" [class]="cn(cx('table'), tableStyleClass)" [pBind]="ptm('table')" [style]="tableStyle" [attr.id]="id + '-table'">
|
|
3344
3359
|
<ng-container *ngTemplateOutlet="colGroupTemplate || _colGroupTemplate; context: { $implicit: scrollerOptions.columns }"></ng-container>
|
|
3345
|
-
<thead role="rowgroup" #thead [class]="cx('thead')" [ngStyle]="sx('thead')">
|
|
3360
|
+
<thead role="rowgroup" #thead [class]="cx('thead')" [ngStyle]="sx('thead')" [pBind]="ptm('thead')">
|
|
3346
3361
|
<ng-container
|
|
3347
3362
|
*ngTemplateOutlet="
|
|
3348
3363
|
headerGroupedTemplate || headerTemplate || _headerTemplate;
|
|
@@ -3355,6 +3370,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3355
3370
|
<tbody
|
|
3356
3371
|
role="rowgroup"
|
|
3357
3372
|
[class]="cx('tbody')"
|
|
3373
|
+
[pBind]="ptm('tbody')"
|
|
3358
3374
|
*ngIf="frozenValue || frozenBodyTemplate || _frozenBodyTemplate"
|
|
3359
3375
|
[value]="frozenValue"
|
|
3360
3376
|
[frozenRows]="true"
|
|
@@ -3365,6 +3381,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3365
3381
|
<tbody
|
|
3366
3382
|
role="rowgroup"
|
|
3367
3383
|
[class]="cx('tbody', scrollerOptions.contentStyleClass)"
|
|
3384
|
+
[pBind]="ptm('tbody')"
|
|
3368
3385
|
[style]="scrollerOptions.contentStyle"
|
|
3369
3386
|
[value]="dataToRender(scrollerOptions.rows)"
|
|
3370
3387
|
[pTableBody]="scrollerOptions.columns"
|
|
@@ -3376,8 +3393,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3376
3393
|
*ngIf="scrollerOptions.spacerStyle"
|
|
3377
3394
|
[style]="'height: calc(' + scrollerOptions.spacerStyle.height + ' - ' + scrollerOptions.rows.length * scrollerOptions.itemSize + 'px);'"
|
|
3378
3395
|
[class]="cx('virtualScrollerSpacer')"
|
|
3396
|
+
[pBind]="ptm('virtualScrollerSpacer')"
|
|
3379
3397
|
></tbody>
|
|
3380
|
-
<tfoot role="rowgroup" *ngIf="footerGroupedTemplate || footerTemplate || _footerTemplate || _footerGroupedTemplate" #tfoot [ngClass]="cx('footer')" [ngStyle]="sx('tfoot')">
|
|
3398
|
+
<tfoot role="rowgroup" *ngIf="footerGroupedTemplate || footerTemplate || _footerTemplate || _footerGroupedTemplate" #tfoot [ngClass]="cx('footer')" [ngStyle]="sx('tfoot')" [pBind]="ptm('tfoot')">
|
|
3381
3399
|
<ng-container
|
|
3382
3400
|
*ngTemplateOutlet="
|
|
3383
3401
|
footerGroupedTemplate || footerTemplate || _footerTemplate || _footerGroupedTemplate;
|
|
@@ -3413,6 +3431,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3413
3431
|
[showPageLinks]="showPageLinks"
|
|
3414
3432
|
[styleClass]="cx('pcPaginator') + ' ' + paginatorStyleClass && paginatorStyleClass"
|
|
3415
3433
|
[locale]="paginatorLocale"
|
|
3434
|
+
[pt]="ptm('pcPaginator')"
|
|
3416
3435
|
>
|
|
3417
3436
|
<ng-template pTemplate="dropdownicon" *ngIf="paginatorDropdownIconTemplate || _paginatorDropdownIconTemplate">
|
|
3418
3437
|
<ng-container *ngTemplateOutlet="paginatorDropdownIconTemplate || _paginatorDropdownIconTemplate"></ng-container>
|
|
@@ -3435,26 +3454,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3435
3454
|
</ng-template>
|
|
3436
3455
|
</p-paginator>
|
|
3437
3456
|
|
|
3438
|
-
<div *ngIf="summaryTemplate || _summaryTemplate" [ngClass]="cx('footer')">
|
|
3457
|
+
<div *ngIf="summaryTemplate || _summaryTemplate" [ngClass]="cx('footer')" [pBind]="ptm('footer')">
|
|
3439
3458
|
<ng-container *ngTemplateOutlet="summaryTemplate || _summaryTemplate"></ng-container>
|
|
3440
3459
|
</div>
|
|
3441
3460
|
|
|
3442
|
-
<div #resizeHelper [ngClass]="cx('columnResizeIndicator')" [style.display]="'none'" *ngIf="resizableColumns"></div>
|
|
3443
|
-
<span #reorderIndicatorUp [ngClass]="cx('rowReorderIndicatorUp')" [style.display]="'none'" *ngIf="reorderableColumns">
|
|
3444
|
-
<svg data-p-icon="arrow-down" *ngIf="!reorderIndicatorUpIconTemplate && !_reorderIndicatorUpIconTemplate" />
|
|
3461
|
+
<div #resizeHelper [ngClass]="cx('columnResizeIndicator')" [pBind]="ptm('columnResizeIndicator')" [style.display]="'none'" *ngIf="resizableColumns"></div>
|
|
3462
|
+
<span #reorderIndicatorUp [ngClass]="cx('rowReorderIndicatorUp')" [pBind]="ptm('rowReorderIndicatorUp')" [style.display]="'none'" *ngIf="reorderableColumns">
|
|
3463
|
+
<svg data-p-icon="arrow-down" *ngIf="!reorderIndicatorUpIconTemplate && !_reorderIndicatorUpIconTemplate" [pBind]="ptm('rowReorderIndicatorUp')['icon']" />
|
|
3445
3464
|
<ng-template *ngTemplateOutlet="reorderIndicatorUpIconTemplate || _reorderIndicatorUpIconTemplate"></ng-template>
|
|
3446
3465
|
</span>
|
|
3447
|
-
<span #reorderIndicatorDown [ngClass]="cx('rowReorderIndicatorDown')" [style.display]="'none'" *ngIf="reorderableColumns">
|
|
3448
|
-
<svg data-p-icon="arrow-up" *ngIf="!reorderIndicatorDownIconTemplate && !_reorderIndicatorDownIconTemplate" />
|
|
3466
|
+
<span #reorderIndicatorDown [ngClass]="cx('rowReorderIndicatorDown')" [pBind]="ptm('rowReorderIndicatorDown')" [style.display]="'none'" *ngIf="reorderableColumns">
|
|
3467
|
+
<svg data-p-icon="arrow-up" *ngIf="!reorderIndicatorDownIconTemplate && !_reorderIndicatorDownIconTemplate" [pBind]="ptm('rowReorderIndicatorDown')['icon']" />
|
|
3449
3468
|
<ng-template *ngTemplateOutlet="reorderIndicatorDownIconTemplate || _reorderIndicatorDownIconTemplate"></ng-template>
|
|
3450
3469
|
</span>
|
|
3451
3470
|
`,
|
|
3452
|
-
providers: [TableService, TableStyle],
|
|
3471
|
+
providers: [TableService, TableStyle, { provide: TABLE_INSTANCE, useExisting: Table }, { provide: PARENT_INSTANCE, useExisting: Table }],
|
|
3453
3472
|
changeDetection: ChangeDetectionStrategy.Default,
|
|
3454
3473
|
encapsulation: ViewEncapsulation.None,
|
|
3455
3474
|
host: {
|
|
3456
3475
|
'[class]': "cn(cx('root'), styleClass)"
|
|
3457
|
-
}
|
|
3476
|
+
},
|
|
3477
|
+
hostDirectives: [Bind]
|
|
3458
3478
|
}]
|
|
3459
3479
|
}], propDecorators: { frozenColumns: [{
|
|
3460
3480
|
type: Input
|
|
@@ -3823,11 +3843,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3823
3843
|
type: ContentChild,
|
|
3824
3844
|
args: ['paginatornextpagelinkicon', { descendants: false }]
|
|
3825
3845
|
}] } });
|
|
3826
|
-
class TableBody {
|
|
3827
|
-
|
|
3846
|
+
class TableBody extends BaseComponent {
|
|
3847
|
+
dataTable;
|
|
3828
3848
|
tableService;
|
|
3829
|
-
|
|
3830
|
-
el;
|
|
3849
|
+
hostName = 'Table';
|
|
3831
3850
|
columns;
|
|
3832
3851
|
template;
|
|
3833
3852
|
get value() {
|
|
@@ -3838,7 +3857,7 @@ class TableBody {
|
|
|
3838
3857
|
if (this.frozenRows) {
|
|
3839
3858
|
this.updateFrozenRowStickyPosition();
|
|
3840
3859
|
}
|
|
3841
|
-
if (this.
|
|
3860
|
+
if (this.dataTable.scrollable && this.dataTable.rowGroupMode === 'subheader') {
|
|
3842
3861
|
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
3843
3862
|
}
|
|
3844
3863
|
}
|
|
@@ -3847,30 +3866,29 @@ class TableBody {
|
|
|
3847
3866
|
scrollerOptions;
|
|
3848
3867
|
subscription;
|
|
3849
3868
|
_value;
|
|
3850
|
-
|
|
3869
|
+
onAfterViewInit() {
|
|
3851
3870
|
if (this.frozenRows) {
|
|
3852
3871
|
this.updateFrozenRowStickyPosition();
|
|
3853
3872
|
}
|
|
3854
|
-
if (this.
|
|
3873
|
+
if (this.dataTable.scrollable && this.dataTable.rowGroupMode === 'subheader') {
|
|
3855
3874
|
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
3856
3875
|
}
|
|
3857
3876
|
}
|
|
3858
|
-
constructor(
|
|
3859
|
-
|
|
3877
|
+
constructor(dataTable, tableService) {
|
|
3878
|
+
super();
|
|
3879
|
+
this.dataTable = dataTable;
|
|
3860
3880
|
this.tableService = tableService;
|
|
3861
|
-
this.
|
|
3862
|
-
|
|
3863
|
-
this.subscription = this.dt.tableService.valueSource$.subscribe(() => {
|
|
3864
|
-
if (this.dt.virtualScroll) {
|
|
3881
|
+
this.subscription = this.dataTable.tableService.valueSource$.subscribe(() => {
|
|
3882
|
+
if (this.dataTable.virtualScroll) {
|
|
3865
3883
|
this.cd.detectChanges();
|
|
3866
3884
|
}
|
|
3867
3885
|
});
|
|
3868
3886
|
}
|
|
3869
3887
|
shouldRenderRowGroupHeader(value, rowData, i) {
|
|
3870
|
-
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.
|
|
3871
|
-
let prevRowData = value[i - (this.
|
|
3888
|
+
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.dataTable?.groupRowsBy || '');
|
|
3889
|
+
let prevRowData = value[i - (this.dataTable?._first || 0) - 1];
|
|
3872
3890
|
if (prevRowData) {
|
|
3873
|
-
let previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.
|
|
3891
|
+
let previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.dataTable?.groupRowsBy || '');
|
|
3874
3892
|
return currentRowFieldData !== previousRowFieldData;
|
|
3875
3893
|
}
|
|
3876
3894
|
else {
|
|
@@ -3878,10 +3896,10 @@ class TableBody {
|
|
|
3878
3896
|
}
|
|
3879
3897
|
}
|
|
3880
3898
|
shouldRenderRowGroupFooter(value, rowData, i) {
|
|
3881
|
-
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.
|
|
3882
|
-
let nextRowData = value[i - (this.
|
|
3899
|
+
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.dataTable?.groupRowsBy || '');
|
|
3900
|
+
let nextRowData = value[i - (this.dataTable?._first || 0) + 1];
|
|
3883
3901
|
if (nextRowData) {
|
|
3884
|
-
let nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.
|
|
3902
|
+
let nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.dataTable?.groupRowsBy || '');
|
|
3885
3903
|
return currentRowFieldData !== nextRowFieldData;
|
|
3886
3904
|
}
|
|
3887
3905
|
else {
|
|
@@ -3889,10 +3907,10 @@ class TableBody {
|
|
|
3889
3907
|
}
|
|
3890
3908
|
}
|
|
3891
3909
|
shouldRenderRowspan(value, rowData, i) {
|
|
3892
|
-
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.
|
|
3910
|
+
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.dataTable?.groupRowsBy);
|
|
3893
3911
|
let prevRowData = value[i - 1];
|
|
3894
3912
|
if (prevRowData) {
|
|
3895
|
-
let previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.
|
|
3913
|
+
let previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.dataTable?.groupRowsBy || '');
|
|
3896
3914
|
return currentRowFieldData !== previousRowFieldData;
|
|
3897
3915
|
}
|
|
3898
3916
|
else {
|
|
@@ -3900,14 +3918,14 @@ class TableBody {
|
|
|
3900
3918
|
}
|
|
3901
3919
|
}
|
|
3902
3920
|
calculateRowGroupSize(value, rowData, index) {
|
|
3903
|
-
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.
|
|
3921
|
+
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.dataTable?.groupRowsBy);
|
|
3904
3922
|
let nextRowFieldData = currentRowFieldData;
|
|
3905
3923
|
let groupRowSpan = 0;
|
|
3906
3924
|
while (currentRowFieldData === nextRowFieldData) {
|
|
3907
3925
|
groupRowSpan++;
|
|
3908
3926
|
let nextRowData = value[++index];
|
|
3909
3927
|
if (nextRowData) {
|
|
3910
|
-
nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.
|
|
3928
|
+
nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.dataTable?.groupRowsBy || '');
|
|
3911
3929
|
}
|
|
3912
3930
|
else {
|
|
3913
3931
|
break;
|
|
@@ -3915,7 +3933,7 @@ class TableBody {
|
|
|
3915
3933
|
}
|
|
3916
3934
|
return groupRowSpan === 1 ? null : groupRowSpan;
|
|
3917
3935
|
}
|
|
3918
|
-
|
|
3936
|
+
onDestroy() {
|
|
3919
3937
|
if (this.subscription) {
|
|
3920
3938
|
this.subscription.unsubscribe();
|
|
3921
3939
|
}
|
|
@@ -3926,62 +3944,65 @@ class TableBody {
|
|
|
3926
3944
|
updateFrozenRowGroupHeaderStickyPosition() {
|
|
3927
3945
|
if (this.el.nativeElement.previousElementSibling) {
|
|
3928
3946
|
let tableHeaderHeight = DomHandler.getOuterHeight(this.el.nativeElement.previousElementSibling);
|
|
3929
|
-
this.
|
|
3947
|
+
this.dataTable.rowGroupHeaderStyleObject.top = tableHeaderHeight + 'px';
|
|
3930
3948
|
}
|
|
3931
3949
|
}
|
|
3932
3950
|
getScrollerOption(option, options) {
|
|
3933
|
-
if (this.
|
|
3951
|
+
if (this.dataTable.virtualScroll) {
|
|
3934
3952
|
options = options || this.scrollerOptions;
|
|
3935
3953
|
return options ? options[option] : null;
|
|
3936
3954
|
}
|
|
3937
3955
|
return null;
|
|
3938
3956
|
}
|
|
3939
3957
|
getRowIndex(rowIndex) {
|
|
3940
|
-
const index = this.
|
|
3958
|
+
const index = this.dataTable.paginator ? this.dataTable.first + rowIndex : rowIndex;
|
|
3941
3959
|
const getItemOptions = this.getScrollerOption('getItemOptions');
|
|
3942
3960
|
return getItemOptions ? getItemOptions(index).index : index;
|
|
3943
3961
|
}
|
|
3944
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3945
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.
|
|
3946
|
-
<ng-container *ngIf="!
|
|
3947
|
-
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="
|
|
3948
|
-
<ng-container
|
|
3962
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableBody, deps: [{ token: Table }, { token: TableService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3963
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.4", type: TableBody, isStandalone: false, selector: "[pTableBody]", inputs: { columns: ["pTableBody", "columns"], template: ["pTableBodyTemplate", "template"], value: "value", frozen: ["frozen", "frozen", booleanAttribute], frozenRows: ["frozenRows", "frozenRows", booleanAttribute], scrollerOptions: "scrollerOptions" }, usesInheritance: true, ngImport: i0, template: `
|
|
3964
|
+
<ng-container *ngIf="!dataTable.expandedRowTemplate && !dataTable._expandedRowTemplate">
|
|
3965
|
+
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="dataTable.rowTrackBy">
|
|
3966
|
+
<ng-container
|
|
3967
|
+
*ngIf="(dataTable.groupHeaderTemplate || dataTable._groupHeaderTemplate) && !dataTable.virtualScroll && dataTable.rowGroupMode === 'subheader' && shouldRenderRowGroupHeader(value, rowData, getRowIndex(rowIndex))"
|
|
3968
|
+
role="row"
|
|
3969
|
+
>
|
|
3949
3970
|
<ng-container
|
|
3950
3971
|
*ngTemplateOutlet="
|
|
3951
|
-
|
|
3972
|
+
dataTable.groupHeaderTemplate || dataTable._groupHeaderTemplate;
|
|
3952
3973
|
context: {
|
|
3953
3974
|
$implicit: rowData,
|
|
3954
3975
|
rowIndex: getRowIndex(rowIndex),
|
|
3955
3976
|
columns: columns,
|
|
3956
|
-
editing:
|
|
3977
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
3957
3978
|
frozen: frozen
|
|
3958
3979
|
}
|
|
3959
3980
|
"
|
|
3960
3981
|
></ng-container>
|
|
3961
3982
|
</ng-container>
|
|
3962
|
-
<ng-container *ngIf="
|
|
3983
|
+
<ng-container *ngIf="dataTable.rowGroupMode !== 'rowspan'">
|
|
3963
3984
|
<ng-container
|
|
3964
3985
|
*ngTemplateOutlet="
|
|
3965
|
-
rowData ? template :
|
|
3986
|
+
rowData ? template : dataTable.loadingBodyTemplate || dataTable._loadingBodyTemplate;
|
|
3966
3987
|
context: {
|
|
3967
3988
|
$implicit: rowData,
|
|
3968
3989
|
rowIndex: getRowIndex(rowIndex),
|
|
3969
3990
|
columns: columns,
|
|
3970
|
-
editing:
|
|
3991
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
3971
3992
|
frozen: frozen
|
|
3972
3993
|
}
|
|
3973
3994
|
"
|
|
3974
3995
|
></ng-container>
|
|
3975
3996
|
</ng-container>
|
|
3976
|
-
<ng-container *ngIf="
|
|
3997
|
+
<ng-container *ngIf="dataTable.rowGroupMode === 'rowspan'">
|
|
3977
3998
|
<ng-container
|
|
3978
3999
|
*ngTemplateOutlet="
|
|
3979
|
-
rowData ? template :
|
|
4000
|
+
rowData ? template : dataTable.loadingBodyTemplate || dataTable._loadingBodyTemplate;
|
|
3980
4001
|
context: {
|
|
3981
4002
|
$implicit: rowData,
|
|
3982
4003
|
rowIndex: getRowIndex(rowIndex),
|
|
3983
4004
|
columns: columns,
|
|
3984
|
-
editing:
|
|
4005
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
3985
4006
|
frozen: frozen,
|
|
3986
4007
|
rowgroup: shouldRenderRowspan(value, rowData, rowIndex),
|
|
3987
4008
|
rowspan: calculateRowGroupSize(value, rowData, rowIndex)
|
|
@@ -3989,15 +4010,18 @@ class TableBody {
|
|
|
3989
4010
|
"
|
|
3990
4011
|
></ng-container>
|
|
3991
4012
|
</ng-container>
|
|
3992
|
-
<ng-container
|
|
4013
|
+
<ng-container
|
|
4014
|
+
*ngIf="(dataTable.groupFooterTemplate || dataTable._groupFooterTemplate) && !dataTable.virtualScroll && dataTable.rowGroupMode === 'subheader' && shouldRenderRowGroupFooter(value, rowData, getRowIndex(rowIndex))"
|
|
4015
|
+
role="row"
|
|
4016
|
+
>
|
|
3993
4017
|
<ng-container
|
|
3994
4018
|
*ngTemplateOutlet="
|
|
3995
|
-
|
|
4019
|
+
dataTable.groupFooterTemplate || dataTable._groupFooterTemplate;
|
|
3996
4020
|
context: {
|
|
3997
4021
|
$implicit: rowData,
|
|
3998
4022
|
rowIndex: getRowIndex(rowIndex),
|
|
3999
4023
|
columns: columns,
|
|
4000
|
-
editing:
|
|
4024
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
4001
4025
|
frozen: frozen
|
|
4002
4026
|
}
|
|
4003
4027
|
"
|
|
@@ -4005,9 +4029,9 @@ class TableBody {
|
|
|
4005
4029
|
</ng-container>
|
|
4006
4030
|
</ng-template>
|
|
4007
4031
|
</ng-container>
|
|
4008
|
-
<ng-container *ngIf="(
|
|
4009
|
-
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="
|
|
4010
|
-
<ng-container *ngIf="!(
|
|
4032
|
+
<ng-container *ngIf="(dataTable.expandedRowTemplate || dataTable._expandedRowTemplate) && !(frozen && (dataTable.frozenExpandedRowTemplate || dataTable._frozenExpandedRowTemplate))">
|
|
4033
|
+
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="dataTable.rowTrackBy">
|
|
4034
|
+
<ng-container *ngIf="!(dataTable.groupHeaderTemplate && dataTable._groupHeaderTemplate)">
|
|
4011
4035
|
<ng-container
|
|
4012
4036
|
*ngTemplateOutlet="
|
|
4013
4037
|
template;
|
|
@@ -4015,32 +4039,32 @@ class TableBody {
|
|
|
4015
4039
|
$implicit: rowData,
|
|
4016
4040
|
rowIndex: getRowIndex(rowIndex),
|
|
4017
4041
|
columns: columns,
|
|
4018
|
-
expanded:
|
|
4019
|
-
editing:
|
|
4042
|
+
expanded: dataTable.isRowExpanded(rowData),
|
|
4043
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
4020
4044
|
frozen: frozen
|
|
4021
4045
|
}
|
|
4022
4046
|
"
|
|
4023
4047
|
></ng-container>
|
|
4024
4048
|
</ng-container>
|
|
4025
|
-
<ng-container *ngIf="(
|
|
4049
|
+
<ng-container *ngIf="(dataTable.groupHeaderTemplate || dataTable._groupHeaderTemplate) && dataTable.rowGroupMode === 'subheader' && shouldRenderRowGroupHeader(value, rowData, getRowIndex(rowIndex))" role="row">
|
|
4026
4050
|
<ng-container
|
|
4027
4051
|
*ngTemplateOutlet="
|
|
4028
|
-
|
|
4052
|
+
dataTable.groupHeaderTemplate || dataTable._groupHeaderTemplate;
|
|
4029
4053
|
context: {
|
|
4030
4054
|
$implicit: rowData,
|
|
4031
4055
|
rowIndex: getRowIndex(rowIndex),
|
|
4032
4056
|
columns: columns,
|
|
4033
|
-
expanded:
|
|
4034
|
-
editing:
|
|
4057
|
+
expanded: dataTable.isRowExpanded(rowData),
|
|
4058
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
4035
4059
|
frozen: frozen
|
|
4036
4060
|
}
|
|
4037
4061
|
"
|
|
4038
4062
|
></ng-container>
|
|
4039
4063
|
</ng-container>
|
|
4040
|
-
<ng-container *ngIf="
|
|
4064
|
+
<ng-container *ngIf="dataTable.isRowExpanded(rowData)">
|
|
4041
4065
|
<ng-container
|
|
4042
4066
|
*ngTemplateOutlet="
|
|
4043
|
-
|
|
4067
|
+
dataTable.expandedRowTemplate || dataTable._expandedRowTemplate;
|
|
4044
4068
|
context: {
|
|
4045
4069
|
$implicit: rowData,
|
|
4046
4070
|
rowIndex: getRowIndex(rowIndex),
|
|
@@ -4049,16 +4073,16 @@ class TableBody {
|
|
|
4049
4073
|
}
|
|
4050
4074
|
"
|
|
4051
4075
|
></ng-container>
|
|
4052
|
-
<ng-container *ngIf="(
|
|
4076
|
+
<ng-container *ngIf="(dataTable.groupFooterTemplate || dataTable._groupFooterTemplate) && dataTable.rowGroupMode === 'subheader' && shouldRenderRowGroupFooter(value, rowData, getRowIndex(rowIndex))" role="row">
|
|
4053
4077
|
<ng-container
|
|
4054
4078
|
*ngTemplateOutlet="
|
|
4055
|
-
|
|
4079
|
+
dataTable.groupFooterTemplate || dataTable._groupFooterTemplate;
|
|
4056
4080
|
context: {
|
|
4057
4081
|
$implicit: rowData,
|
|
4058
4082
|
rowIndex: getRowIndex(rowIndex),
|
|
4059
4083
|
columns: columns,
|
|
4060
|
-
expanded:
|
|
4061
|
-
editing:
|
|
4084
|
+
expanded: dataTable.isRowExpanded(rowData),
|
|
4085
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
4062
4086
|
frozen: frozen
|
|
4063
4087
|
}
|
|
4064
4088
|
"
|
|
@@ -4067,8 +4091,8 @@ class TableBody {
|
|
|
4067
4091
|
</ng-container>
|
|
4068
4092
|
</ng-template>
|
|
4069
4093
|
</ng-container>
|
|
4070
|
-
<ng-container *ngIf="(
|
|
4071
|
-
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="
|
|
4094
|
+
<ng-container *ngIf="(dataTable.frozenExpandedRowTemplate || dataTable._frozenExpandedRowTemplate) && frozen">
|
|
4095
|
+
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="dataTable.rowTrackBy">
|
|
4072
4096
|
<ng-container
|
|
4073
4097
|
*ngTemplateOutlet="
|
|
4074
4098
|
template;
|
|
@@ -4076,16 +4100,16 @@ class TableBody {
|
|
|
4076
4100
|
$implicit: rowData,
|
|
4077
4101
|
rowIndex: getRowIndex(rowIndex),
|
|
4078
4102
|
columns: columns,
|
|
4079
|
-
expanded:
|
|
4080
|
-
editing:
|
|
4103
|
+
expanded: dataTable.isRowExpanded(rowData),
|
|
4104
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
4081
4105
|
frozen: frozen
|
|
4082
4106
|
}
|
|
4083
4107
|
"
|
|
4084
4108
|
></ng-container>
|
|
4085
|
-
<ng-container *ngIf="
|
|
4109
|
+
<ng-container *ngIf="dataTable.isRowExpanded(rowData)">
|
|
4086
4110
|
<ng-container
|
|
4087
4111
|
*ngTemplateOutlet="
|
|
4088
|
-
|
|
4112
|
+
dataTable.frozenExpandedRowTemplate || dataTable._frozenExpandedRowTemplate;
|
|
4089
4113
|
context: {
|
|
4090
4114
|
$implicit: rowData,
|
|
4091
4115
|
rowIndex: getRowIndex(rowIndex),
|
|
@@ -4097,59 +4121,62 @@ class TableBody {
|
|
|
4097
4121
|
</ng-container>
|
|
4098
4122
|
</ng-template>
|
|
4099
4123
|
</ng-container>
|
|
4100
|
-
<ng-container *ngIf="
|
|
4101
|
-
<ng-container *ngTemplateOutlet="
|
|
4124
|
+
<ng-container *ngIf="dataTable.loading">
|
|
4125
|
+
<ng-container *ngTemplateOutlet="dataTable.loadingBodyTemplate || dataTable._loadingBodyTemplate; context: { $implicit: columns, frozen: frozen }"></ng-container>
|
|
4102
4126
|
</ng-container>
|
|
4103
|
-
<ng-container *ngIf="
|
|
4104
|
-
<ng-container *ngTemplateOutlet="
|
|
4127
|
+
<ng-container *ngIf="dataTable.isEmpty() && !dataTable.loading">
|
|
4128
|
+
<ng-container *ngTemplateOutlet="dataTable.emptyMessageTemplate || dataTable._emptyMessageTemplate; context: { $implicit: columns, frozen: frozen }"></ng-container>
|
|
4105
4129
|
</ng-container>
|
|
4106
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
4130
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
4107
4131
|
}
|
|
4108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableBody, decorators: [{
|
|
4109
4133
|
type: Component,
|
|
4110
4134
|
args: [{
|
|
4111
4135
|
selector: '[pTableBody]',
|
|
4112
4136
|
standalone: false,
|
|
4113
4137
|
template: `
|
|
4114
|
-
<ng-container *ngIf="!
|
|
4115
|
-
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="
|
|
4116
|
-
<ng-container
|
|
4138
|
+
<ng-container *ngIf="!dataTable.expandedRowTemplate && !dataTable._expandedRowTemplate">
|
|
4139
|
+
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="dataTable.rowTrackBy">
|
|
4140
|
+
<ng-container
|
|
4141
|
+
*ngIf="(dataTable.groupHeaderTemplate || dataTable._groupHeaderTemplate) && !dataTable.virtualScroll && dataTable.rowGroupMode === 'subheader' && shouldRenderRowGroupHeader(value, rowData, getRowIndex(rowIndex))"
|
|
4142
|
+
role="row"
|
|
4143
|
+
>
|
|
4117
4144
|
<ng-container
|
|
4118
4145
|
*ngTemplateOutlet="
|
|
4119
|
-
|
|
4146
|
+
dataTable.groupHeaderTemplate || dataTable._groupHeaderTemplate;
|
|
4120
4147
|
context: {
|
|
4121
4148
|
$implicit: rowData,
|
|
4122
4149
|
rowIndex: getRowIndex(rowIndex),
|
|
4123
4150
|
columns: columns,
|
|
4124
|
-
editing:
|
|
4151
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
4125
4152
|
frozen: frozen
|
|
4126
4153
|
}
|
|
4127
4154
|
"
|
|
4128
4155
|
></ng-container>
|
|
4129
4156
|
</ng-container>
|
|
4130
|
-
<ng-container *ngIf="
|
|
4157
|
+
<ng-container *ngIf="dataTable.rowGroupMode !== 'rowspan'">
|
|
4131
4158
|
<ng-container
|
|
4132
4159
|
*ngTemplateOutlet="
|
|
4133
|
-
rowData ? template :
|
|
4160
|
+
rowData ? template : dataTable.loadingBodyTemplate || dataTable._loadingBodyTemplate;
|
|
4134
4161
|
context: {
|
|
4135
4162
|
$implicit: rowData,
|
|
4136
4163
|
rowIndex: getRowIndex(rowIndex),
|
|
4137
4164
|
columns: columns,
|
|
4138
|
-
editing:
|
|
4165
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
4139
4166
|
frozen: frozen
|
|
4140
4167
|
}
|
|
4141
4168
|
"
|
|
4142
4169
|
></ng-container>
|
|
4143
4170
|
</ng-container>
|
|
4144
|
-
<ng-container *ngIf="
|
|
4171
|
+
<ng-container *ngIf="dataTable.rowGroupMode === 'rowspan'">
|
|
4145
4172
|
<ng-container
|
|
4146
4173
|
*ngTemplateOutlet="
|
|
4147
|
-
rowData ? template :
|
|
4174
|
+
rowData ? template : dataTable.loadingBodyTemplate || dataTable._loadingBodyTemplate;
|
|
4148
4175
|
context: {
|
|
4149
4176
|
$implicit: rowData,
|
|
4150
4177
|
rowIndex: getRowIndex(rowIndex),
|
|
4151
4178
|
columns: columns,
|
|
4152
|
-
editing:
|
|
4179
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
4153
4180
|
frozen: frozen,
|
|
4154
4181
|
rowgroup: shouldRenderRowspan(value, rowData, rowIndex),
|
|
4155
4182
|
rowspan: calculateRowGroupSize(value, rowData, rowIndex)
|
|
@@ -4157,15 +4184,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4157
4184
|
"
|
|
4158
4185
|
></ng-container>
|
|
4159
4186
|
</ng-container>
|
|
4160
|
-
<ng-container
|
|
4187
|
+
<ng-container
|
|
4188
|
+
*ngIf="(dataTable.groupFooterTemplate || dataTable._groupFooterTemplate) && !dataTable.virtualScroll && dataTable.rowGroupMode === 'subheader' && shouldRenderRowGroupFooter(value, rowData, getRowIndex(rowIndex))"
|
|
4189
|
+
role="row"
|
|
4190
|
+
>
|
|
4161
4191
|
<ng-container
|
|
4162
4192
|
*ngTemplateOutlet="
|
|
4163
|
-
|
|
4193
|
+
dataTable.groupFooterTemplate || dataTable._groupFooterTemplate;
|
|
4164
4194
|
context: {
|
|
4165
4195
|
$implicit: rowData,
|
|
4166
4196
|
rowIndex: getRowIndex(rowIndex),
|
|
4167
4197
|
columns: columns,
|
|
4168
|
-
editing:
|
|
4198
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
4169
4199
|
frozen: frozen
|
|
4170
4200
|
}
|
|
4171
4201
|
"
|
|
@@ -4173,9 +4203,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4173
4203
|
</ng-container>
|
|
4174
4204
|
</ng-template>
|
|
4175
4205
|
</ng-container>
|
|
4176
|
-
<ng-container *ngIf="(
|
|
4177
|
-
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="
|
|
4178
|
-
<ng-container *ngIf="!(
|
|
4206
|
+
<ng-container *ngIf="(dataTable.expandedRowTemplate || dataTable._expandedRowTemplate) && !(frozen && (dataTable.frozenExpandedRowTemplate || dataTable._frozenExpandedRowTemplate))">
|
|
4207
|
+
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="dataTable.rowTrackBy">
|
|
4208
|
+
<ng-container *ngIf="!(dataTable.groupHeaderTemplate && dataTable._groupHeaderTemplate)">
|
|
4179
4209
|
<ng-container
|
|
4180
4210
|
*ngTemplateOutlet="
|
|
4181
4211
|
template;
|
|
@@ -4183,32 +4213,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4183
4213
|
$implicit: rowData,
|
|
4184
4214
|
rowIndex: getRowIndex(rowIndex),
|
|
4185
4215
|
columns: columns,
|
|
4186
|
-
expanded:
|
|
4187
|
-
editing:
|
|
4216
|
+
expanded: dataTable.isRowExpanded(rowData),
|
|
4217
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
4188
4218
|
frozen: frozen
|
|
4189
4219
|
}
|
|
4190
4220
|
"
|
|
4191
4221
|
></ng-container>
|
|
4192
4222
|
</ng-container>
|
|
4193
|
-
<ng-container *ngIf="(
|
|
4223
|
+
<ng-container *ngIf="(dataTable.groupHeaderTemplate || dataTable._groupHeaderTemplate) && dataTable.rowGroupMode === 'subheader' && shouldRenderRowGroupHeader(value, rowData, getRowIndex(rowIndex))" role="row">
|
|
4194
4224
|
<ng-container
|
|
4195
4225
|
*ngTemplateOutlet="
|
|
4196
|
-
|
|
4226
|
+
dataTable.groupHeaderTemplate || dataTable._groupHeaderTemplate;
|
|
4197
4227
|
context: {
|
|
4198
4228
|
$implicit: rowData,
|
|
4199
4229
|
rowIndex: getRowIndex(rowIndex),
|
|
4200
4230
|
columns: columns,
|
|
4201
|
-
expanded:
|
|
4202
|
-
editing:
|
|
4231
|
+
expanded: dataTable.isRowExpanded(rowData),
|
|
4232
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
4203
4233
|
frozen: frozen
|
|
4204
4234
|
}
|
|
4205
4235
|
"
|
|
4206
4236
|
></ng-container>
|
|
4207
4237
|
</ng-container>
|
|
4208
|
-
<ng-container *ngIf="
|
|
4238
|
+
<ng-container *ngIf="dataTable.isRowExpanded(rowData)">
|
|
4209
4239
|
<ng-container
|
|
4210
4240
|
*ngTemplateOutlet="
|
|
4211
|
-
|
|
4241
|
+
dataTable.expandedRowTemplate || dataTable._expandedRowTemplate;
|
|
4212
4242
|
context: {
|
|
4213
4243
|
$implicit: rowData,
|
|
4214
4244
|
rowIndex: getRowIndex(rowIndex),
|
|
@@ -4217,16 +4247,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4217
4247
|
}
|
|
4218
4248
|
"
|
|
4219
4249
|
></ng-container>
|
|
4220
|
-
<ng-container *ngIf="(
|
|
4250
|
+
<ng-container *ngIf="(dataTable.groupFooterTemplate || dataTable._groupFooterTemplate) && dataTable.rowGroupMode === 'subheader' && shouldRenderRowGroupFooter(value, rowData, getRowIndex(rowIndex))" role="row">
|
|
4221
4251
|
<ng-container
|
|
4222
4252
|
*ngTemplateOutlet="
|
|
4223
|
-
|
|
4253
|
+
dataTable.groupFooterTemplate || dataTable._groupFooterTemplate;
|
|
4224
4254
|
context: {
|
|
4225
4255
|
$implicit: rowData,
|
|
4226
4256
|
rowIndex: getRowIndex(rowIndex),
|
|
4227
4257
|
columns: columns,
|
|
4228
|
-
expanded:
|
|
4229
|
-
editing:
|
|
4258
|
+
expanded: dataTable.isRowExpanded(rowData),
|
|
4259
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
4230
4260
|
frozen: frozen
|
|
4231
4261
|
}
|
|
4232
4262
|
"
|
|
@@ -4235,8 +4265,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4235
4265
|
</ng-container>
|
|
4236
4266
|
</ng-template>
|
|
4237
4267
|
</ng-container>
|
|
4238
|
-
<ng-container *ngIf="(
|
|
4239
|
-
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="
|
|
4268
|
+
<ng-container *ngIf="(dataTable.frozenExpandedRowTemplate || dataTable._frozenExpandedRowTemplate) && frozen">
|
|
4269
|
+
<ng-template ngFor let-rowData let-rowIndex="index" [ngForOf]="value" [ngForTrackBy]="dataTable.rowTrackBy">
|
|
4240
4270
|
<ng-container
|
|
4241
4271
|
*ngTemplateOutlet="
|
|
4242
4272
|
template;
|
|
@@ -4244,16 +4274,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4244
4274
|
$implicit: rowData,
|
|
4245
4275
|
rowIndex: getRowIndex(rowIndex),
|
|
4246
4276
|
columns: columns,
|
|
4247
|
-
expanded:
|
|
4248
|
-
editing:
|
|
4277
|
+
expanded: dataTable.isRowExpanded(rowData),
|
|
4278
|
+
editing: dataTable.editMode === 'row' && dataTable.isRowEditing(rowData),
|
|
4249
4279
|
frozen: frozen
|
|
4250
4280
|
}
|
|
4251
4281
|
"
|
|
4252
4282
|
></ng-container>
|
|
4253
|
-
<ng-container *ngIf="
|
|
4283
|
+
<ng-container *ngIf="dataTable.isRowExpanded(rowData)">
|
|
4254
4284
|
<ng-container
|
|
4255
4285
|
*ngTemplateOutlet="
|
|
4256
|
-
|
|
4286
|
+
dataTable.frozenExpandedRowTemplate || dataTable._frozenExpandedRowTemplate;
|
|
4257
4287
|
context: {
|
|
4258
4288
|
$implicit: rowData,
|
|
4259
4289
|
rowIndex: getRowIndex(rowIndex),
|
|
@@ -4265,17 +4295,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4265
4295
|
</ng-container>
|
|
4266
4296
|
</ng-template>
|
|
4267
4297
|
</ng-container>
|
|
4268
|
-
<ng-container *ngIf="
|
|
4269
|
-
<ng-container *ngTemplateOutlet="
|
|
4298
|
+
<ng-container *ngIf="dataTable.loading">
|
|
4299
|
+
<ng-container *ngTemplateOutlet="dataTable.loadingBodyTemplate || dataTable._loadingBodyTemplate; context: { $implicit: columns, frozen: frozen }"></ng-container>
|
|
4270
4300
|
</ng-container>
|
|
4271
|
-
<ng-container *ngIf="
|
|
4272
|
-
<ng-container *ngTemplateOutlet="
|
|
4301
|
+
<ng-container *ngIf="dataTable.isEmpty() && !dataTable.loading">
|
|
4302
|
+
<ng-container *ngTemplateOutlet="dataTable.emptyMessageTemplate || dataTable._emptyMessageTemplate; context: { $implicit: columns, frozen: frozen }"></ng-container>
|
|
4273
4303
|
</ng-container>
|
|
4274
4304
|
`,
|
|
4275
4305
|
changeDetection: ChangeDetectionStrategy.Default,
|
|
4276
4306
|
encapsulation: ViewEncapsulation.None
|
|
4277
4307
|
}]
|
|
4278
|
-
}], ctorParameters: () => [{ type: Table }, { type: TableService }
|
|
4308
|
+
}], ctorParameters: () => [{ type: Table }, { type: TableService }], propDecorators: { columns: [{
|
|
4279
4309
|
type: Input,
|
|
4280
4310
|
args: ['pTableBody']
|
|
4281
4311
|
}], template: [{
|
|
@@ -4293,17 +4323,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4293
4323
|
type: Input
|
|
4294
4324
|
}] } });
|
|
4295
4325
|
class RowGroupHeader {
|
|
4296
|
-
|
|
4297
|
-
constructor(
|
|
4298
|
-
this.
|
|
4326
|
+
dataTable;
|
|
4327
|
+
constructor(dataTable) {
|
|
4328
|
+
this.dataTable = dataTable;
|
|
4299
4329
|
}
|
|
4300
4330
|
get getFrozenRowGroupHeaderStickyPosition() {
|
|
4301
|
-
return this.
|
|
4331
|
+
return this.dataTable.rowGroupHeaderStyleObject ? this.dataTable.rowGroupHeaderStyleObject.top : '';
|
|
4302
4332
|
}
|
|
4303
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4304
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
4333
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RowGroupHeader, deps: [{ token: Table }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4334
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.4", type: RowGroupHeader, isStandalone: false, selector: "[pRowGroupHeader]", host: { properties: { "style.top": "getFrozenRowGroupHeaderStickyPosition" }, classAttribute: "p-datatable-row-group-header" }, ngImport: i0 });
|
|
4305
4335
|
}
|
|
4306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RowGroupHeader, decorators: [{
|
|
4307
4337
|
type: Directive,
|
|
4308
4338
|
args: [{
|
|
4309
4339
|
selector: '[pRowGroupHeader]',
|
|
@@ -4314,11 +4344,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4314
4344
|
}
|
|
4315
4345
|
}]
|
|
4316
4346
|
}], ctorParameters: () => [{ type: Table }] });
|
|
4317
|
-
class FrozenColumn {
|
|
4318
|
-
el;
|
|
4319
|
-
renderer;
|
|
4320
|
-
document;
|
|
4321
|
-
platformId;
|
|
4347
|
+
class FrozenColumn extends BaseComponent {
|
|
4322
4348
|
get frozen() {
|
|
4323
4349
|
return this._frozen;
|
|
4324
4350
|
}
|
|
@@ -4329,13 +4355,7 @@ class FrozenColumn {
|
|
|
4329
4355
|
alignFrozen = 'left';
|
|
4330
4356
|
resizeListener;
|
|
4331
4357
|
resizeObserver;
|
|
4332
|
-
|
|
4333
|
-
this.el = el;
|
|
4334
|
-
this.renderer = renderer;
|
|
4335
|
-
this.document = document;
|
|
4336
|
-
this.platformId = platformId;
|
|
4337
|
-
}
|
|
4338
|
-
ngAfterViewInit() {
|
|
4358
|
+
onAfterViewInit() {
|
|
4339
4359
|
this.bindResizeListener();
|
|
4340
4360
|
this.observeChanges();
|
|
4341
4361
|
}
|
|
@@ -4402,16 +4422,16 @@ class FrozenColumn {
|
|
|
4402
4422
|
}
|
|
4403
4423
|
}
|
|
4404
4424
|
}
|
|
4405
|
-
|
|
4425
|
+
onDestroy() {
|
|
4406
4426
|
this.unbindResizeListener();
|
|
4407
4427
|
if (this.resizeObserver) {
|
|
4408
4428
|
this.resizeObserver.disconnect();
|
|
4409
4429
|
}
|
|
4410
4430
|
}
|
|
4411
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4412
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
4431
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: FrozenColumn, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4432
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.4", type: FrozenColumn, isStandalone: false, selector: "[pFrozenColumn]", inputs: { frozen: "frozen", alignFrozen: "alignFrozen" }, host: { properties: { "class.p-datatable-frozen-column": "frozen", "class.p-datatable-frozen-column-left": "alignFrozen === \"left\"" } }, usesInheritance: true, ngImport: i0 });
|
|
4413
4433
|
}
|
|
4414
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: FrozenColumn, decorators: [{
|
|
4415
4435
|
type: Directive,
|
|
4416
4436
|
args: [{
|
|
4417
4437
|
selector: '[pFrozenColumn]',
|
|
@@ -4421,38 +4441,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4421
4441
|
'[class.p-datatable-frozen-column-left]': 'alignFrozen === "left"'
|
|
4422
4442
|
}
|
|
4423
4443
|
}]
|
|
4424
|
-
}],
|
|
4425
|
-
type: Inject,
|
|
4426
|
-
args: [DOCUMENT]
|
|
4427
|
-
}] }, { type: undefined, decorators: [{
|
|
4428
|
-
type: Inject,
|
|
4429
|
-
args: [PLATFORM_ID]
|
|
4430
|
-
}] }], propDecorators: { frozen: [{
|
|
4444
|
+
}], propDecorators: { frozen: [{
|
|
4431
4445
|
type: Input
|
|
4432
4446
|
}], alignFrozen: [{
|
|
4433
4447
|
type: Input
|
|
4434
4448
|
}] } });
|
|
4435
4449
|
class SortableColumn extends BaseComponent {
|
|
4436
|
-
|
|
4437
|
-
#elementRef = inject(ElementRef);
|
|
4450
|
+
dataTable;
|
|
4438
4451
|
field;
|
|
4439
4452
|
pSortableColumnDisabled;
|
|
4440
|
-
role = this
|
|
4453
|
+
role = this.el.nativeElement?.tagName !== 'TH' ? 'columnheader' : null;
|
|
4441
4454
|
sorted;
|
|
4442
4455
|
sortOrder;
|
|
4443
4456
|
subscription;
|
|
4444
4457
|
_componentStyle = inject(TableStyle);
|
|
4445
|
-
constructor(
|
|
4458
|
+
constructor(dataTable) {
|
|
4446
4459
|
super();
|
|
4447
|
-
this.
|
|
4460
|
+
this.dataTable = dataTable;
|
|
4448
4461
|
if (this.isEnabled()) {
|
|
4449
|
-
this.subscription = this.
|
|
4462
|
+
this.subscription = this.dataTable.tableService.sortSource$.subscribe((sortMeta) => {
|
|
4450
4463
|
this.updateSortState();
|
|
4451
4464
|
});
|
|
4452
4465
|
}
|
|
4453
4466
|
}
|
|
4454
|
-
|
|
4455
|
-
super.ngOnInit();
|
|
4467
|
+
onInit() {
|
|
4456
4468
|
if (this.isEnabled()) {
|
|
4457
4469
|
this.updateSortState();
|
|
4458
4470
|
}
|
|
@@ -4460,12 +4472,12 @@ class SortableColumn extends BaseComponent {
|
|
|
4460
4472
|
updateSortState() {
|
|
4461
4473
|
let sorted = false;
|
|
4462
4474
|
let sortOrder = 0;
|
|
4463
|
-
if (this.
|
|
4464
|
-
sorted = this.
|
|
4465
|
-
sortOrder = this.
|
|
4475
|
+
if (this.dataTable.sortMode === 'single') {
|
|
4476
|
+
sorted = this.dataTable.isSorted(this.field);
|
|
4477
|
+
sortOrder = this.dataTable.sortOrder;
|
|
4466
4478
|
}
|
|
4467
|
-
else if (this.
|
|
4468
|
-
const sortMeta = this.
|
|
4479
|
+
else if (this.dataTable.sortMode === 'multiple') {
|
|
4480
|
+
const sortMeta = this.dataTable.getSortMeta(this.field);
|
|
4469
4481
|
sorted = !!sortMeta;
|
|
4470
4482
|
sortOrder = sortMeta ? sortMeta.order : 0;
|
|
4471
4483
|
}
|
|
@@ -4475,7 +4487,7 @@ class SortableColumn extends BaseComponent {
|
|
|
4475
4487
|
onClick(event) {
|
|
4476
4488
|
if (this.isEnabled() && !this.isFilterElement(event.target)) {
|
|
4477
4489
|
this.updateSortState();
|
|
4478
|
-
this.
|
|
4490
|
+
this.dataTable.sort({
|
|
4479
4491
|
originalEvent: event,
|
|
4480
4492
|
field: this.field
|
|
4481
4493
|
});
|
|
@@ -4495,16 +4507,15 @@ class SortableColumn extends BaseComponent {
|
|
|
4495
4507
|
isFilterElementIconOrButton(element) {
|
|
4496
4508
|
return DomHandler.hasClass(element, 'pi-filter-icon') || DomHandler.hasClass(element, 'p-column-filter-menu-button');
|
|
4497
4509
|
}
|
|
4498
|
-
|
|
4499
|
-
super.ngOnDestroy();
|
|
4510
|
+
onDestroy() {
|
|
4500
4511
|
if (this.subscription) {
|
|
4501
4512
|
this.subscription.unsubscribe();
|
|
4502
4513
|
}
|
|
4503
4514
|
}
|
|
4504
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4505
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.
|
|
4515
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: SortableColumn, deps: [{ token: Table }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4516
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.4", type: SortableColumn, isStandalone: false, selector: "[pSortableColumn]", inputs: { field: ["pSortableColumn", "field"], pSortableColumnDisabled: ["pSortableColumnDisabled", "pSortableColumnDisabled", booleanAttribute] }, host: { listeners: { "click": "onClick($event)", "keydown.space": "onEnterKey($event)", "keydown.enter": "onEnterKey($event)" }, properties: { "class": "cx('sortableColumn')", "tabindex": "isEnabled() ? \"0\" : null", "role": "\"columnheader\"", "attr.aria-sort": "sortOrder" } }, providers: [TableStyle], usesInheritance: true, ngImport: i0 });
|
|
4506
4517
|
}
|
|
4507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: SortableColumn, decorators: [{
|
|
4508
4519
|
type: Directive,
|
|
4509
4520
|
args: [{
|
|
4510
4521
|
selector: '[pSortableColumn]',
|
|
@@ -4534,41 +4545,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4534
4545
|
args: ['keydown.enter', ['$event']]
|
|
4535
4546
|
}] } });
|
|
4536
4547
|
class SortIcon extends BaseComponent {
|
|
4537
|
-
|
|
4548
|
+
dataTable;
|
|
4538
4549
|
cd;
|
|
4539
4550
|
field;
|
|
4540
4551
|
subscription;
|
|
4541
4552
|
sortOrder;
|
|
4542
4553
|
_componentStyle = inject(TableStyle);
|
|
4543
|
-
constructor(
|
|
4554
|
+
constructor(dataTable, cd) {
|
|
4544
4555
|
super();
|
|
4545
|
-
this.
|
|
4556
|
+
this.dataTable = dataTable;
|
|
4546
4557
|
this.cd = cd;
|
|
4547
|
-
this.subscription = this.
|
|
4558
|
+
this.subscription = this.dataTable.tableService.sortSource$.subscribe((sortMeta) => {
|
|
4548
4559
|
this.updateSortState();
|
|
4549
4560
|
});
|
|
4550
4561
|
}
|
|
4551
|
-
|
|
4552
|
-
super.ngOnInit();
|
|
4562
|
+
onInit() {
|
|
4553
4563
|
this.updateSortState();
|
|
4554
4564
|
}
|
|
4555
4565
|
onClick(event) {
|
|
4556
4566
|
event.preventDefault();
|
|
4557
4567
|
}
|
|
4558
4568
|
updateSortState() {
|
|
4559
|
-
if (this.
|
|
4560
|
-
this.sortOrder = this.
|
|
4569
|
+
if (this.dataTable.sortMode === 'single') {
|
|
4570
|
+
this.sortOrder = this.dataTable.isSorted(this.field) ? this.dataTable.sortOrder : 0;
|
|
4561
4571
|
}
|
|
4562
|
-
else if (this.
|
|
4563
|
-
let sortMeta = this.
|
|
4572
|
+
else if (this.dataTable.sortMode === 'multiple') {
|
|
4573
|
+
let sortMeta = this.dataTable.getSortMeta(this.field);
|
|
4564
4574
|
this.sortOrder = sortMeta ? sortMeta.order : 0;
|
|
4565
4575
|
}
|
|
4566
4576
|
this.cd.markForCheck();
|
|
4567
4577
|
}
|
|
4568
4578
|
getMultiSortMetaIndex() {
|
|
4569
|
-
let multiSortMeta = this.
|
|
4579
|
+
let multiSortMeta = this.dataTable._multiSortMeta;
|
|
4570
4580
|
let index = -1;
|
|
4571
|
-
if (multiSortMeta && this.
|
|
4581
|
+
if (multiSortMeta && this.dataTable.sortMode === 'multiple' && this.dataTable.showInitialSortBadge && multiSortMeta.length > 1) {
|
|
4572
4582
|
for (let i = 0; i < multiSortMeta.length; i++) {
|
|
4573
4583
|
let meta = multiSortMeta[i];
|
|
4574
4584
|
if (meta.field === this.field || meta.field === this.field) {
|
|
@@ -4581,43 +4591,42 @@ class SortIcon extends BaseComponent {
|
|
|
4581
4591
|
}
|
|
4582
4592
|
getBadgeValue() {
|
|
4583
4593
|
let index = this.getMultiSortMetaIndex();
|
|
4584
|
-
return (this.
|
|
4594
|
+
return (this.dataTable?.groupRowsBy || '') && index > -1 ? index : index + 1;
|
|
4585
4595
|
}
|
|
4586
4596
|
isMultiSorted() {
|
|
4587
|
-
return this.
|
|
4597
|
+
return this.dataTable.sortMode === 'multiple' && this.getMultiSortMetaIndex() > -1;
|
|
4588
4598
|
}
|
|
4589
|
-
|
|
4590
|
-
super.ngOnDestroy();
|
|
4599
|
+
onDestroy() {
|
|
4591
4600
|
if (this.subscription) {
|
|
4592
4601
|
this.subscription.unsubscribe();
|
|
4593
4602
|
}
|
|
4594
4603
|
}
|
|
4595
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4596
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
4597
|
-
<ng-container *ngIf="!(
|
|
4604
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: SortIcon, deps: [{ token: Table }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4605
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: SortIcon, isStandalone: false, selector: "p-sortIcon", inputs: { field: "field" }, providers: [TableStyle], usesInheritance: true, ngImport: i0, template: `
|
|
4606
|
+
<ng-container *ngIf="!(dataTable.sortIconTemplate || dataTable._sortIconTemplate)">
|
|
4598
4607
|
<svg data-p-icon="sort-alt" [class]="cx('sortableColumnIcon')" *ngIf="sortOrder === 0" />
|
|
4599
4608
|
<svg data-p-icon="sort-amount-up-alt" [class]="cx('sortableColumnIcon')" *ngIf="sortOrder === 1" />
|
|
4600
4609
|
<svg data-p-icon="sort-amount-down" [class]="cx('sortableColumnIcon')" *ngIf="sortOrder === -1" />
|
|
4601
4610
|
</ng-container>
|
|
4602
|
-
<span *ngIf="
|
|
4603
|
-
<ng-template *ngTemplateOutlet="
|
|
4611
|
+
<span *ngIf="dataTable.sortIconTemplate || dataTable._sortIconTemplate" [class]="cx('sortableColumnIcon')">
|
|
4612
|
+
<ng-template *ngTemplateOutlet="dataTable.sortIconTemplate || dataTable._sortIconTemplate; context: { $implicit: sortOrder }"></ng-template>
|
|
4604
4613
|
</span>
|
|
4605
4614
|
<p-badge *ngIf="isMultiSorted()" [class]="cx('sortableColumnBadge')" [value]="getBadgeValue()" size="small"></p-badge>
|
|
4606
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() =>
|
|
4615
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => i6.Badge), selector: "p-badge", inputs: ["styleClass", "badgeSize", "size", "severity", "value", "badgeDisabled"] }, { kind: "component", type: i0.forwardRef(() => SortAltIcon), selector: "[data-p-icon=\"sort-alt\"]" }, { kind: "component", type: i0.forwardRef(() => SortAmountUpAltIcon), selector: "[data-p-icon=\"sort-amount-up-alt\"]" }, { kind: "component", type: i0.forwardRef(() => SortAmountDownIcon), selector: "[data-p-icon=\"sort-amount-down\"]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4607
4616
|
}
|
|
4608
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4617
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: SortIcon, decorators: [{
|
|
4609
4618
|
type: Component,
|
|
4610
4619
|
args: [{
|
|
4611
4620
|
selector: 'p-sortIcon',
|
|
4612
4621
|
standalone: false,
|
|
4613
4622
|
template: `
|
|
4614
|
-
<ng-container *ngIf="!(
|
|
4623
|
+
<ng-container *ngIf="!(dataTable.sortIconTemplate || dataTable._sortIconTemplate)">
|
|
4615
4624
|
<svg data-p-icon="sort-alt" [class]="cx('sortableColumnIcon')" *ngIf="sortOrder === 0" />
|
|
4616
4625
|
<svg data-p-icon="sort-amount-up-alt" [class]="cx('sortableColumnIcon')" *ngIf="sortOrder === 1" />
|
|
4617
4626
|
<svg data-p-icon="sort-amount-down" [class]="cx('sortableColumnIcon')" *ngIf="sortOrder === -1" />
|
|
4618
4627
|
</ng-container>
|
|
4619
|
-
<span *ngIf="
|
|
4620
|
-
<ng-template *ngTemplateOutlet="
|
|
4628
|
+
<span *ngIf="dataTable.sortIconTemplate || dataTable._sortIconTemplate" [class]="cx('sortableColumnIcon')">
|
|
4629
|
+
<ng-template *ngTemplateOutlet="dataTable.sortIconTemplate || dataTable._sortIconTemplate; context: { $implicit: sortOrder }"></ng-template>
|
|
4621
4630
|
</span>
|
|
4622
4631
|
<p-badge *ngIf="isMultiSorted()" [class]="cx('sortableColumnBadge')" [value]="getBadgeValue()" size="small"></p-badge>
|
|
4623
4632
|
`,
|
|
@@ -4629,7 +4638,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4629
4638
|
type: Input
|
|
4630
4639
|
}] } });
|
|
4631
4640
|
class SelectableRow extends BaseComponent {
|
|
4632
|
-
|
|
4641
|
+
dataTable;
|
|
4633
4642
|
tableService;
|
|
4634
4643
|
data;
|
|
4635
4644
|
index;
|
|
@@ -4637,30 +4646,29 @@ class SelectableRow extends BaseComponent {
|
|
|
4637
4646
|
selected;
|
|
4638
4647
|
subscription;
|
|
4639
4648
|
_componentStyle = inject(TableStyle);
|
|
4640
|
-
constructor(
|
|
4649
|
+
constructor(dataTable, tableService) {
|
|
4641
4650
|
super();
|
|
4642
|
-
this.
|
|
4651
|
+
this.dataTable = dataTable;
|
|
4643
4652
|
this.tableService = tableService;
|
|
4644
4653
|
if (this.isEnabled()) {
|
|
4645
|
-
this.subscription = this.
|
|
4646
|
-
this.selected = this.
|
|
4654
|
+
this.subscription = this.dataTable.tableService.selectionSource$.subscribe(() => {
|
|
4655
|
+
this.selected = this.dataTable.isSelected(this.data);
|
|
4647
4656
|
});
|
|
4648
4657
|
}
|
|
4649
4658
|
}
|
|
4650
4659
|
setRowTabIndex() {
|
|
4651
|
-
if (this.
|
|
4652
|
-
return !this.
|
|
4660
|
+
if (this.dataTable.selectionMode === 'single' || this.dataTable.selectionMode === 'multiple') {
|
|
4661
|
+
return !this.dataTable.selection ? 0 : this.dataTable.anchorRowIndex === this.index ? 0 : -1;
|
|
4653
4662
|
}
|
|
4654
4663
|
}
|
|
4655
|
-
|
|
4656
|
-
super.ngOnInit();
|
|
4664
|
+
onInit() {
|
|
4657
4665
|
if (this.isEnabled()) {
|
|
4658
|
-
this.selected = this.
|
|
4666
|
+
this.selected = this.dataTable.isSelected(this.data);
|
|
4659
4667
|
}
|
|
4660
4668
|
}
|
|
4661
4669
|
onClick(event) {
|
|
4662
4670
|
if (this.isEnabled()) {
|
|
4663
|
-
this.
|
|
4671
|
+
this.dataTable.handleRowClick({
|
|
4664
4672
|
originalEvent: event,
|
|
4665
4673
|
rowData: this.data,
|
|
4666
4674
|
rowIndex: this.index
|
|
@@ -4669,7 +4677,7 @@ class SelectableRow extends BaseComponent {
|
|
|
4669
4677
|
}
|
|
4670
4678
|
onTouchEnd(event) {
|
|
4671
4679
|
if (this.isEnabled()) {
|
|
4672
|
-
this.
|
|
4680
|
+
this.dataTable.handleRowTouchEnd(event);
|
|
4673
4681
|
}
|
|
4674
4682
|
}
|
|
4675
4683
|
onKeyDown(event) {
|
|
@@ -4693,10 +4701,10 @@ class SelectableRow extends BaseComponent {
|
|
|
4693
4701
|
this.onEnterKey(event);
|
|
4694
4702
|
break;
|
|
4695
4703
|
default:
|
|
4696
|
-
if (event.code === 'KeyA' && (event.metaKey || event.ctrlKey) && this.
|
|
4697
|
-
const data = this.
|
|
4698
|
-
this.
|
|
4699
|
-
this.
|
|
4704
|
+
if (event.code === 'KeyA' && (event.metaKey || event.ctrlKey) && this.dataTable.selectionMode === 'multiple') {
|
|
4705
|
+
const data = this.dataTable.dataToRender(this.dataTable.processedData);
|
|
4706
|
+
this.dataTable.selection = [...data];
|
|
4707
|
+
this.dataTable.selectRange(event, data.length - 1, true);
|
|
4700
4708
|
event.preventDefault();
|
|
4701
4709
|
}
|
|
4702
4710
|
break;
|
|
@@ -4728,7 +4736,7 @@ class SelectableRow extends BaseComponent {
|
|
|
4728
4736
|
if (!this.isEnabled()) {
|
|
4729
4737
|
return;
|
|
4730
4738
|
}
|
|
4731
|
-
this.
|
|
4739
|
+
this.dataTable.handleRowClick({
|
|
4732
4740
|
originalEvent: event,
|
|
4733
4741
|
rowData: this.data,
|
|
4734
4742
|
rowIndex: this.index
|
|
@@ -4738,11 +4746,11 @@ class SelectableRow extends BaseComponent {
|
|
|
4738
4746
|
const lastRow = this.findLastSelectableRow();
|
|
4739
4747
|
lastRow && this.focusRowChange(this.el.nativeElement, lastRow);
|
|
4740
4748
|
if (event.ctrlKey && event.shiftKey) {
|
|
4741
|
-
const data = this.
|
|
4749
|
+
const data = this.dataTable.dataToRender(this.dataTable.rows);
|
|
4742
4750
|
const lastSelectableRowIndex = DomHandler.getAttribute(lastRow, 'index');
|
|
4743
|
-
this.
|
|
4744
|
-
this.
|
|
4745
|
-
this.
|
|
4751
|
+
this.dataTable.anchorRowIndex = lastSelectableRowIndex;
|
|
4752
|
+
this.dataTable.selection = data.slice(this.index || 0, data.length);
|
|
4753
|
+
this.dataTable.selectRange(event, this.index || 0);
|
|
4746
4754
|
}
|
|
4747
4755
|
event.preventDefault();
|
|
4748
4756
|
}
|
|
@@ -4750,11 +4758,11 @@ class SelectableRow extends BaseComponent {
|
|
|
4750
4758
|
const firstRow = this.findFirstSelectableRow();
|
|
4751
4759
|
firstRow && this.focusRowChange(this.el.nativeElement, firstRow);
|
|
4752
4760
|
if (event.ctrlKey && event.shiftKey) {
|
|
4753
|
-
const data = this.
|
|
4761
|
+
const data = this.dataTable.dataToRender(this.dataTable.rows);
|
|
4754
4762
|
const firstSelectableRowIndex = DomHandler.getAttribute(firstRow, 'index');
|
|
4755
|
-
this.
|
|
4756
|
-
this.
|
|
4757
|
-
this.
|
|
4763
|
+
this.dataTable.anchorRowIndex = this.dataTable.anchorRowIndex || firstSelectableRowIndex || 0;
|
|
4764
|
+
this.dataTable.selection = data.slice(0, (this.index || 0) + 1);
|
|
4765
|
+
this.dataTable.selectRange(event, this.index || 0);
|
|
4758
4766
|
}
|
|
4759
4767
|
event.preventDefault();
|
|
4760
4768
|
}
|
|
@@ -4765,21 +4773,21 @@ class SelectableRow extends BaseComponent {
|
|
|
4765
4773
|
}
|
|
4766
4774
|
else {
|
|
4767
4775
|
this.onEnterKey(event);
|
|
4768
|
-
if (event.shiftKey && this.
|
|
4769
|
-
const data = this.
|
|
4776
|
+
if (event.shiftKey && this.dataTable.selection !== null) {
|
|
4777
|
+
const data = this.dataTable.dataToRender(this.dataTable.rows);
|
|
4770
4778
|
let index;
|
|
4771
|
-
if (ObjectUtils.isNotEmpty(this.
|
|
4779
|
+
if (ObjectUtils.isNotEmpty(this.dataTable.selection) && this.dataTable.selection.length > 0) {
|
|
4772
4780
|
let firstSelectedRowIndex, lastSelectedRowIndex;
|
|
4773
|
-
firstSelectedRowIndex = ObjectUtils.findIndexInList(this.
|
|
4774
|
-
lastSelectedRowIndex = ObjectUtils.findIndexInList(this.
|
|
4781
|
+
firstSelectedRowIndex = ObjectUtils.findIndexInList(this.dataTable.selection[0], data);
|
|
4782
|
+
lastSelectedRowIndex = ObjectUtils.findIndexInList(this.dataTable.selection[this.dataTable.selection.length - 1], data);
|
|
4775
4783
|
index = (this.index || 0) <= firstSelectedRowIndex ? lastSelectedRowIndex : firstSelectedRowIndex;
|
|
4776
4784
|
}
|
|
4777
4785
|
else {
|
|
4778
|
-
index = ObjectUtils.findIndexInList(this.
|
|
4786
|
+
index = ObjectUtils.findIndexInList(this.dataTable.selection, data);
|
|
4779
4787
|
}
|
|
4780
|
-
this.
|
|
4781
|
-
this.
|
|
4782
|
-
this.
|
|
4788
|
+
this.dataTable.anchorRowIndex = index || 0;
|
|
4789
|
+
this.dataTable.selection = index !== this.index ? data.slice(Math.min(index || 0, this.index || 0), Math.max(index || 0, this.index || 0) + 1) : [this.data];
|
|
4790
|
+
this.dataTable.selectRange(event, this.index || 0);
|
|
4783
4791
|
}
|
|
4784
4792
|
event.preventDefault();
|
|
4785
4793
|
}
|
|
@@ -4790,11 +4798,11 @@ class SelectableRow extends BaseComponent {
|
|
|
4790
4798
|
DomHandler.focus(currentFocusedRow);
|
|
4791
4799
|
}
|
|
4792
4800
|
findLastSelectableRow() {
|
|
4793
|
-
const rows = DomHandler.find(this.
|
|
4801
|
+
const rows = DomHandler.find(this.dataTable.el.nativeElement, '.p-datatable-selectable-row');
|
|
4794
4802
|
return rows ? rows[rows.length - 1] : null;
|
|
4795
4803
|
}
|
|
4796
4804
|
findFirstSelectableRow() {
|
|
4797
|
-
const firstRow = DomHandler.findSingle(this.
|
|
4805
|
+
const firstRow = DomHandler.findSingle(this.dataTable.el.nativeElement, '.p-datatable-selectable-row');
|
|
4798
4806
|
return firstRow;
|
|
4799
4807
|
}
|
|
4800
4808
|
findNextSelectableRow(row) {
|
|
@@ -4824,16 +4832,15 @@ class SelectableRow extends BaseComponent {
|
|
|
4824
4832
|
isEnabled() {
|
|
4825
4833
|
return this.pSelectableRowDisabled !== true;
|
|
4826
4834
|
}
|
|
4827
|
-
|
|
4828
|
-
super.ngOnDestroy();
|
|
4835
|
+
onDestroy() {
|
|
4829
4836
|
if (this.subscription) {
|
|
4830
4837
|
this.subscription.unsubscribe();
|
|
4831
4838
|
}
|
|
4832
4839
|
}
|
|
4833
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4834
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.
|
|
4840
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: SelectableRow, deps: [{ token: Table }, { token: TableService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4841
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.4", type: SelectableRow, isStandalone: false, selector: "[pSelectableRow]", inputs: { data: ["pSelectableRow", "data"], index: ["pSelectableRowIndex", "index"], pSelectableRowDisabled: ["pSelectableRowDisabled", "pSelectableRowDisabled", booleanAttribute] }, host: { listeners: { "click": "onClick($event)", "touchend": "onTouchEnd($event)", "keydown": "onKeyDown($event)" }, properties: { "class": "cx('selectableRow')", "tabindex": "setRowTabIndex()", "attr.data-p-selectable-row": "true" } }, providers: [TableStyle], usesInheritance: true, ngImport: i0 });
|
|
4835
4842
|
}
|
|
4836
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4843
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: SelectableRow, decorators: [{
|
|
4837
4844
|
type: Directive,
|
|
4838
4845
|
args: [{
|
|
4839
4846
|
selector: '[pSelectableRow]',
|
|
@@ -4864,31 +4871,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4864
4871
|
type: HostListener,
|
|
4865
4872
|
args: ['keydown', ['$event']]
|
|
4866
4873
|
}] } });
|
|
4867
|
-
class SelectableRowDblClick {
|
|
4868
|
-
|
|
4874
|
+
class SelectableRowDblClick extends BaseComponent {
|
|
4875
|
+
dataTable;
|
|
4869
4876
|
tableService;
|
|
4870
4877
|
data;
|
|
4871
4878
|
index;
|
|
4872
4879
|
pSelectableRowDisabled;
|
|
4873
4880
|
selected;
|
|
4874
4881
|
subscription;
|
|
4875
|
-
constructor(
|
|
4876
|
-
|
|
4882
|
+
constructor(dataTable, tableService) {
|
|
4883
|
+
super();
|
|
4884
|
+
this.dataTable = dataTable;
|
|
4877
4885
|
this.tableService = tableService;
|
|
4878
4886
|
if (this.isEnabled()) {
|
|
4879
|
-
this.subscription = this.
|
|
4880
|
-
this.selected = this.
|
|
4887
|
+
this.subscription = this.dataTable.tableService.selectionSource$.subscribe(() => {
|
|
4888
|
+
this.selected = this.dataTable.isSelected(this.data);
|
|
4881
4889
|
});
|
|
4882
4890
|
}
|
|
4883
4891
|
}
|
|
4884
|
-
|
|
4892
|
+
onInit() {
|
|
4885
4893
|
if (this.isEnabled()) {
|
|
4886
|
-
this.selected = this.
|
|
4894
|
+
this.selected = this.dataTable.isSelected(this.data);
|
|
4887
4895
|
}
|
|
4888
4896
|
}
|
|
4889
4897
|
onClick(event) {
|
|
4890
4898
|
if (this.isEnabled()) {
|
|
4891
|
-
this.
|
|
4899
|
+
this.dataTable.handleRowClick({
|
|
4892
4900
|
originalEvent: event,
|
|
4893
4901
|
rowData: this.data,
|
|
4894
4902
|
rowIndex: this.index
|
|
@@ -4898,15 +4906,15 @@ class SelectableRowDblClick {
|
|
|
4898
4906
|
isEnabled() {
|
|
4899
4907
|
return this.pSelectableRowDisabled !== true;
|
|
4900
4908
|
}
|
|
4901
|
-
|
|
4909
|
+
onDestroy() {
|
|
4902
4910
|
if (this.subscription) {
|
|
4903
4911
|
this.subscription.unsubscribe();
|
|
4904
4912
|
}
|
|
4905
4913
|
}
|
|
4906
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4907
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.
|
|
4914
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: SelectableRowDblClick, deps: [{ token: Table }, { token: TableService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4915
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.4", type: SelectableRowDblClick, isStandalone: false, selector: "[pSelectableRowDblClick]", inputs: { data: ["pSelectableRowDblClick", "data"], index: ["pSelectableRowIndex", "index"], pSelectableRowDisabled: ["pSelectableRowDisabled", "pSelectableRowDisabled", booleanAttribute] }, host: { listeners: { "dblclick": "onClick($event)" }, properties: { "class.p-selectable-row": "isEnabled()", "class.p-highlight": "selected" } }, usesInheritance: true, ngImport: i0 });
|
|
4908
4916
|
}
|
|
4909
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4917
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: SelectableRowDblClick, decorators: [{
|
|
4910
4918
|
type: Directive,
|
|
4911
4919
|
args: [{
|
|
4912
4920
|
selector: '[pSelectableRowDblClick]',
|
|
@@ -4929,28 +4937,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4929
4937
|
type: HostListener,
|
|
4930
4938
|
args: ['dblclick', ['$event']]
|
|
4931
4939
|
}] } });
|
|
4932
|
-
class ContextMenuRow {
|
|
4933
|
-
|
|
4940
|
+
class ContextMenuRow extends BaseComponent {
|
|
4941
|
+
dataTable;
|
|
4934
4942
|
tableService;
|
|
4935
|
-
el;
|
|
4936
4943
|
data;
|
|
4937
4944
|
index;
|
|
4938
4945
|
pContextMenuRowDisabled;
|
|
4939
4946
|
selected;
|
|
4940
4947
|
subscription;
|
|
4941
|
-
constructor(
|
|
4942
|
-
|
|
4948
|
+
constructor(dataTable, tableService) {
|
|
4949
|
+
super();
|
|
4950
|
+
this.dataTable = dataTable;
|
|
4943
4951
|
this.tableService = tableService;
|
|
4944
|
-
this.el = el;
|
|
4945
4952
|
if (this.isEnabled()) {
|
|
4946
|
-
this.subscription = this.
|
|
4947
|
-
this.selected = this.
|
|
4953
|
+
this.subscription = this.dataTable.tableService.contextMenuSource$.subscribe((data) => {
|
|
4954
|
+
this.selected = this.dataTable.equals(this.data, data);
|
|
4948
4955
|
});
|
|
4949
4956
|
}
|
|
4950
4957
|
}
|
|
4951
4958
|
onContextMenu(event) {
|
|
4952
4959
|
if (this.isEnabled()) {
|
|
4953
|
-
this.
|
|
4960
|
+
this.dataTable.handleRowRightClick({
|
|
4954
4961
|
originalEvent: event,
|
|
4955
4962
|
rowData: this.data,
|
|
4956
4963
|
rowIndex: this.index
|
|
@@ -4962,15 +4969,15 @@ class ContextMenuRow {
|
|
|
4962
4969
|
isEnabled() {
|
|
4963
4970
|
return this.pContextMenuRowDisabled !== true;
|
|
4964
4971
|
}
|
|
4965
|
-
|
|
4972
|
+
onDestroy() {
|
|
4966
4973
|
if (this.subscription) {
|
|
4967
4974
|
this.subscription.unsubscribe();
|
|
4968
4975
|
}
|
|
4969
4976
|
}
|
|
4970
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4971
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.
|
|
4977
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ContextMenuRow, deps: [{ token: Table }, { token: TableService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4978
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.4", type: ContextMenuRow, isStandalone: false, selector: "[pContextMenuRow]", inputs: { data: ["pContextMenuRow", "data"], index: ["pContextMenuRowIndex", "index"], pContextMenuRowDisabled: ["pContextMenuRowDisabled", "pContextMenuRowDisabled", booleanAttribute] }, host: { listeners: { "contextmenu": "onContextMenu($event)" }, properties: { "class.p-datatable-contextmenu-row-selected": "selected", "attr.tabindex": "isEnabled() ? 0 : undefined" } }, usesInheritance: true, ngImport: i0 });
|
|
4972
4979
|
}
|
|
4973
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4980
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ContextMenuRow, decorators: [{
|
|
4974
4981
|
type: Directive,
|
|
4975
4982
|
args: [{
|
|
4976
4983
|
selector: '[pContextMenuRow]',
|
|
@@ -4980,7 +4987,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4980
4987
|
'[attr.tabindex]': 'isEnabled() ? 0 : undefined'
|
|
4981
4988
|
}
|
|
4982
4989
|
}]
|
|
4983
|
-
}], ctorParameters: () => [{ type: Table }, { type: TableService }
|
|
4990
|
+
}], ctorParameters: () => [{ type: Table }, { type: TableService }], propDecorators: { data: [{
|
|
4984
4991
|
type: Input,
|
|
4985
4992
|
args: ['pContextMenuRow']
|
|
4986
4993
|
}], index: [{
|
|
@@ -4993,26 +5000,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4993
5000
|
type: HostListener,
|
|
4994
5001
|
args: ['contextmenu', ['$event']]
|
|
4995
5002
|
}] } });
|
|
4996
|
-
class RowToggler {
|
|
4997
|
-
|
|
5003
|
+
class RowToggler extends BaseComponent {
|
|
5004
|
+
dataTable;
|
|
4998
5005
|
data;
|
|
4999
5006
|
pRowTogglerDisabled;
|
|
5000
|
-
constructor(
|
|
5001
|
-
|
|
5007
|
+
constructor(dataTable) {
|
|
5008
|
+
super();
|
|
5009
|
+
this.dataTable = dataTable;
|
|
5002
5010
|
}
|
|
5003
5011
|
onClick(event) {
|
|
5004
5012
|
if (this.isEnabled()) {
|
|
5005
|
-
this.
|
|
5013
|
+
this.dataTable.toggleRow(this.data, event);
|
|
5006
5014
|
event.preventDefault();
|
|
5007
5015
|
}
|
|
5008
5016
|
}
|
|
5009
5017
|
isEnabled() {
|
|
5010
5018
|
return this.pRowTogglerDisabled !== true;
|
|
5011
5019
|
}
|
|
5012
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5013
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.
|
|
5020
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RowToggler, deps: [{ token: Table }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5021
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.4", type: RowToggler, isStandalone: false, selector: "[pRowToggler]", inputs: { data: ["pRowToggler", "data"], pRowTogglerDisabled: ["pRowTogglerDisabled", "pRowTogglerDisabled", booleanAttribute] }, host: { listeners: { "click": "onClick($event)" } }, usesInheritance: true, ngImport: i0 });
|
|
5014
5022
|
}
|
|
5015
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5023
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RowToggler, decorators: [{
|
|
5016
5024
|
type: Directive,
|
|
5017
5025
|
args: [{
|
|
5018
5026
|
selector: '[pRowToggler]',
|
|
@@ -5029,8 +5037,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
5029
5037
|
args: ['click', ['$event']]
|
|
5030
5038
|
}] } });
|
|
5031
5039
|
class ResizableColumn extends BaseComponent {
|
|
5032
|
-
|
|
5033
|
-
el;
|
|
5040
|
+
dataTable;
|
|
5034
5041
|
zone;
|
|
5035
5042
|
pResizableColumnDisabled;
|
|
5036
5043
|
resizer;
|
|
@@ -5041,14 +5048,12 @@ class ResizableColumn extends BaseComponent {
|
|
|
5041
5048
|
documentMouseMoveListener;
|
|
5042
5049
|
documentMouseUpListener;
|
|
5043
5050
|
_componentStyle = inject(TableStyle);
|
|
5044
|
-
constructor(
|
|
5051
|
+
constructor(dataTable, zone) {
|
|
5045
5052
|
super();
|
|
5046
|
-
this.
|
|
5047
|
-
this.el = el;
|
|
5053
|
+
this.dataTable = dataTable;
|
|
5048
5054
|
this.zone = zone;
|
|
5049
5055
|
}
|
|
5050
|
-
|
|
5051
|
-
super.ngAfterViewInit();
|
|
5056
|
+
onAfterViewInit() {
|
|
5052
5057
|
if (isPlatformBrowser(this.platformId)) {
|
|
5053
5058
|
if (this.isEnabled()) {
|
|
5054
5059
|
DomHandler.addClass(this.el.nativeElement, 'p-datatable-resizable-column');
|
|
@@ -5089,42 +5094,41 @@ class ResizableColumn extends BaseComponent {
|
|
|
5089
5094
|
}
|
|
5090
5095
|
}
|
|
5091
5096
|
onMouseDown(event) {
|
|
5092
|
-
this.
|
|
5097
|
+
this.dataTable.onColumnResizeBegin(event);
|
|
5093
5098
|
this.bindDocumentEvents();
|
|
5094
5099
|
}
|
|
5095
5100
|
onTouchStart(event) {
|
|
5096
|
-
this.
|
|
5101
|
+
this.dataTable.onColumnResizeBegin(event);
|
|
5097
5102
|
this.bindDocumentEvents();
|
|
5098
5103
|
}
|
|
5099
5104
|
onTouchMove(event) {
|
|
5100
|
-
this.
|
|
5105
|
+
this.dataTable.onColumnResize(event);
|
|
5101
5106
|
}
|
|
5102
5107
|
onDocumentMouseMove(event) {
|
|
5103
|
-
this.
|
|
5108
|
+
this.dataTable.onColumnResize(event);
|
|
5104
5109
|
}
|
|
5105
5110
|
onDocumentMouseUp(event) {
|
|
5106
|
-
this.
|
|
5111
|
+
this.dataTable.onColumnResizeEnd();
|
|
5107
5112
|
this.unbindDocumentEvents();
|
|
5108
5113
|
}
|
|
5109
5114
|
onTouchEnd(event) {
|
|
5110
|
-
this.
|
|
5115
|
+
this.dataTable.onColumnResizeEnd();
|
|
5111
5116
|
this.unbindDocumentEvents();
|
|
5112
5117
|
}
|
|
5113
5118
|
isEnabled() {
|
|
5114
5119
|
return this.pResizableColumnDisabled !== true;
|
|
5115
5120
|
}
|
|
5116
|
-
|
|
5117
|
-
super.ngOnDestroy();
|
|
5121
|
+
onDestroy() {
|
|
5118
5122
|
if (this.resizerMouseDownListener) {
|
|
5119
5123
|
this.resizerMouseDownListener();
|
|
5120
5124
|
this.resizerMouseDownListener = null;
|
|
5121
5125
|
}
|
|
5122
5126
|
this.unbindDocumentEvents();
|
|
5123
5127
|
}
|
|
5124
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5125
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.
|
|
5128
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ResizableColumn, deps: [{ token: Table }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5129
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.4", type: ResizableColumn, isStandalone: false, selector: "[pResizableColumn]", inputs: { pResizableColumnDisabled: ["pResizableColumnDisabled", "pResizableColumnDisabled", booleanAttribute] }, host: { properties: { "class": "cx('resizableColumn')" } }, providers: [TableStyle], usesInheritance: true, ngImport: i0 });
|
|
5126
5130
|
}
|
|
5127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ResizableColumn, decorators: [{
|
|
5128
5132
|
type: Directive,
|
|
5129
5133
|
args: [{
|
|
5130
5134
|
selector: '[pResizableColumn]',
|
|
@@ -5134,12 +5138,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
5134
5138
|
},
|
|
5135
5139
|
providers: [TableStyle]
|
|
5136
5140
|
}]
|
|
5137
|
-
}], ctorParameters: () => [{ type: Table }, { type: i0.
|
|
5141
|
+
}], ctorParameters: () => [{ type: Table }, { type: i0.NgZone }], propDecorators: { pResizableColumnDisabled: [{
|
|
5138
5142
|
type: Input,
|
|
5139
5143
|
args: [{ transform: booleanAttribute }]
|
|
5140
5144
|
}] } });
|
|
5141
5145
|
class ReorderableColumn extends BaseComponent {
|
|
5142
|
-
|
|
5146
|
+
dataTable;
|
|
5143
5147
|
el;
|
|
5144
5148
|
zone;
|
|
5145
5149
|
pReorderableColumnDisabled;
|
|
@@ -5149,14 +5153,13 @@ class ReorderableColumn extends BaseComponent {
|
|
|
5149
5153
|
dragLeaveListener;
|
|
5150
5154
|
mouseDownListener;
|
|
5151
5155
|
_componentStyle = inject(TableStyle);
|
|
5152
|
-
constructor(
|
|
5156
|
+
constructor(dataTable, el, zone) {
|
|
5153
5157
|
super();
|
|
5154
|
-
this.
|
|
5158
|
+
this.dataTable = dataTable;
|
|
5155
5159
|
this.el = el;
|
|
5156
5160
|
this.zone = zone;
|
|
5157
5161
|
}
|
|
5158
|
-
|
|
5159
|
-
super.ngAfterViewInit();
|
|
5162
|
+
onAfterViewInit() {
|
|
5160
5163
|
if (this.isEnabled()) {
|
|
5161
5164
|
this.bindEvents();
|
|
5162
5165
|
}
|
|
@@ -5201,33 +5204,32 @@ class ReorderableColumn extends BaseComponent {
|
|
|
5201
5204
|
this.el.nativeElement.draggable = true;
|
|
5202
5205
|
}
|
|
5203
5206
|
onDragStart(event) {
|
|
5204
|
-
this.
|
|
5207
|
+
this.dataTable.onColumnDragStart(event, this.el.nativeElement);
|
|
5205
5208
|
}
|
|
5206
5209
|
onDragOver(event) {
|
|
5207
5210
|
event.preventDefault();
|
|
5208
5211
|
}
|
|
5209
5212
|
onDragEnter(event) {
|
|
5210
|
-
this.
|
|
5213
|
+
this.dataTable.onColumnDragEnter(event, this.el.nativeElement);
|
|
5211
5214
|
}
|
|
5212
5215
|
onDragLeave(event) {
|
|
5213
|
-
this.
|
|
5216
|
+
this.dataTable.onColumnDragLeave(event);
|
|
5214
5217
|
}
|
|
5215
5218
|
onDrop(event) {
|
|
5216
5219
|
if (this.isEnabled()) {
|
|
5217
|
-
this.
|
|
5220
|
+
this.dataTable.onColumnDrop(event, this.el.nativeElement);
|
|
5218
5221
|
}
|
|
5219
5222
|
}
|
|
5220
5223
|
isEnabled() {
|
|
5221
5224
|
return this.pReorderableColumnDisabled !== true;
|
|
5222
5225
|
}
|
|
5223
|
-
|
|
5224
|
-
super.ngOnDestroy();
|
|
5226
|
+
onDestroy() {
|
|
5225
5227
|
this.unbindEvents();
|
|
5226
5228
|
}
|
|
5227
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5228
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.
|
|
5229
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ReorderableColumn, deps: [{ token: Table }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5230
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.4", type: ReorderableColumn, isStandalone: false, selector: "[pReorderableColumn]", inputs: { pReorderableColumnDisabled: ["pReorderableColumnDisabled", "pReorderableColumnDisabled", booleanAttribute] }, host: { listeners: { "drop": "onDrop($event)" }, properties: { "class": "cx('reorderableColumn')" } }, providers: [TableStyle], usesInheritance: true, ngImport: i0 });
|
|
5229
5231
|
}
|
|
5230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ReorderableColumn, decorators: [{
|
|
5231
5233
|
type: Directive,
|
|
5232
5234
|
args: [{
|
|
5233
5235
|
selector: '[pReorderableColumn]',
|
|
@@ -5244,9 +5246,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
5244
5246
|
type: HostListener,
|
|
5245
5247
|
args: ['drop', ['$event']]
|
|
5246
5248
|
}] } });
|
|
5247
|
-
class EditableColumn {
|
|
5248
|
-
|
|
5249
|
-
el;
|
|
5249
|
+
class EditableColumn extends BaseComponent {
|
|
5250
|
+
dataTable;
|
|
5250
5251
|
zone;
|
|
5251
5252
|
data;
|
|
5252
5253
|
field;
|
|
@@ -5254,27 +5255,27 @@ class EditableColumn {
|
|
|
5254
5255
|
pEditableColumnDisabled;
|
|
5255
5256
|
pFocusCellSelector;
|
|
5256
5257
|
overlayEventListener;
|
|
5257
|
-
constructor(
|
|
5258
|
-
|
|
5259
|
-
this.
|
|
5258
|
+
constructor(dataTable, zone) {
|
|
5259
|
+
super();
|
|
5260
|
+
this.dataTable = dataTable;
|
|
5260
5261
|
this.zone = zone;
|
|
5261
5262
|
}
|
|
5262
|
-
|
|
5263
|
+
onChanges(changes) {
|
|
5263
5264
|
if (this.el.nativeElement && !changes.data?.firstChange) {
|
|
5264
|
-
this.
|
|
5265
|
+
this.dataTable.updateEditingCell(this.el.nativeElement, this.data, this.field, this.rowIndex);
|
|
5265
5266
|
}
|
|
5266
5267
|
}
|
|
5267
|
-
|
|
5268
|
+
onAfterViewInit() {
|
|
5268
5269
|
if (this.isEnabled()) {
|
|
5269
5270
|
DomHandler.addClass(this.el.nativeElement, 'p-editable-column');
|
|
5270
5271
|
}
|
|
5271
5272
|
}
|
|
5272
5273
|
onClick(event) {
|
|
5273
5274
|
if (this.isEnabled()) {
|
|
5274
|
-
this.
|
|
5275
|
-
if (this.
|
|
5276
|
-
if (this.
|
|
5277
|
-
if (!this.
|
|
5275
|
+
this.dataTable.selfClick = true;
|
|
5276
|
+
if (this.dataTable.editingCell) {
|
|
5277
|
+
if (this.dataTable.editingCell !== this.el.nativeElement) {
|
|
5278
|
+
if (!this.dataTable.isEditingCellValid()) {
|
|
5278
5279
|
return;
|
|
5279
5280
|
}
|
|
5280
5281
|
this.closeEditingCell(true, event);
|
|
@@ -5287,9 +5288,9 @@ class EditableColumn {
|
|
|
5287
5288
|
}
|
|
5288
5289
|
}
|
|
5289
5290
|
openCell() {
|
|
5290
|
-
this.
|
|
5291
|
+
this.dataTable.updateEditingCell(this.el.nativeElement, this.data, this.field, this.rowIndex);
|
|
5291
5292
|
DomHandler.addClass(this.el.nativeElement, 'p-cell-editing');
|
|
5292
|
-
this.
|
|
5293
|
+
this.dataTable.onEditInit.emit({
|
|
5293
5294
|
field: this.field,
|
|
5294
5295
|
data: this.data,
|
|
5295
5296
|
index: this.rowIndex
|
|
@@ -5305,41 +5306,41 @@ class EditableColumn {
|
|
|
5305
5306
|
});
|
|
5306
5307
|
this.overlayEventListener = (e) => {
|
|
5307
5308
|
if (this.el && this.el.nativeElement.contains(e.target)) {
|
|
5308
|
-
this.
|
|
5309
|
+
this.dataTable.selfClick = true;
|
|
5309
5310
|
}
|
|
5310
5311
|
};
|
|
5311
|
-
this.
|
|
5312
|
+
this.dataTable.overlaySubscription = this.dataTable.overlayService.clickObservable.subscribe(this.overlayEventListener);
|
|
5312
5313
|
}
|
|
5313
5314
|
closeEditingCell(completed, event) {
|
|
5314
5315
|
const eventData = {
|
|
5315
|
-
field: this.
|
|
5316
|
-
data: this.
|
|
5316
|
+
field: this.dataTable.editingCellField,
|
|
5317
|
+
data: this.dataTable.editingCellData,
|
|
5317
5318
|
originalEvent: event,
|
|
5318
|
-
index: this.
|
|
5319
|
+
index: this.dataTable.editingCellRowIndex
|
|
5319
5320
|
};
|
|
5320
5321
|
if (completed) {
|
|
5321
|
-
this.
|
|
5322
|
+
this.dataTable.onEditComplete.emit(eventData);
|
|
5322
5323
|
}
|
|
5323
5324
|
else {
|
|
5324
|
-
this.
|
|
5325
|
-
this.
|
|
5326
|
-
if (element[this.
|
|
5327
|
-
element[this.
|
|
5325
|
+
this.dataTable.onEditCancel.emit(eventData);
|
|
5326
|
+
this.dataTable.value.forEach((element) => {
|
|
5327
|
+
if (element[this.dataTable.editingCellField] === this.data) {
|
|
5328
|
+
element[this.dataTable.editingCellField] = this.dataTable.editingCellData;
|
|
5328
5329
|
}
|
|
5329
5330
|
});
|
|
5330
5331
|
}
|
|
5331
|
-
DomHandler.removeClass(this.
|
|
5332
|
-
this.
|
|
5333
|
-
this.
|
|
5334
|
-
this.
|
|
5335
|
-
this.
|
|
5336
|
-
if (this.
|
|
5337
|
-
this.
|
|
5332
|
+
DomHandler.removeClass(this.dataTable.editingCell, 'p-cell-editing');
|
|
5333
|
+
this.dataTable.editingCell = null;
|
|
5334
|
+
this.dataTable.editingCellData = null;
|
|
5335
|
+
this.dataTable.editingCellField = null;
|
|
5336
|
+
this.dataTable.unbindDocumentEditListener();
|
|
5337
|
+
if (this.dataTable.overlaySubscription) {
|
|
5338
|
+
this.dataTable.overlaySubscription.unsubscribe();
|
|
5338
5339
|
}
|
|
5339
5340
|
}
|
|
5340
5341
|
onEnterKeyDown(event) {
|
|
5341
5342
|
if (this.isEnabled() && !event.shiftKey) {
|
|
5342
|
-
if (this.
|
|
5343
|
+
if (this.dataTable.isEditingCellValid()) {
|
|
5343
5344
|
this.closeEditingCell(true, event);
|
|
5344
5345
|
}
|
|
5345
5346
|
event.preventDefault();
|
|
@@ -5347,7 +5348,7 @@ class EditableColumn {
|
|
|
5347
5348
|
}
|
|
5348
5349
|
onTabKeyDown(event) {
|
|
5349
5350
|
if (this.isEnabled()) {
|
|
5350
|
-
if (this.
|
|
5351
|
+
if (this.dataTable.isEditingCellValid()) {
|
|
5351
5352
|
this.closeEditingCell(true, event);
|
|
5352
5353
|
}
|
|
5353
5354
|
event.preventDefault();
|
|
@@ -5355,7 +5356,7 @@ class EditableColumn {
|
|
|
5355
5356
|
}
|
|
5356
5357
|
onEscapeKeyDown(event) {
|
|
5357
5358
|
if (this.isEnabled()) {
|
|
5358
|
-
if (this.
|
|
5359
|
+
if (this.dataTable.isEditingCellValid()) {
|
|
5359
5360
|
this.closeEditingCell(false, event);
|
|
5360
5361
|
}
|
|
5361
5362
|
event.preventDefault();
|
|
@@ -5377,7 +5378,7 @@ class EditableColumn {
|
|
|
5377
5378
|
let cellIndex = DomHandler.index(currentCell);
|
|
5378
5379
|
let targetCell = this.findNextEditableColumnByIndex(currentCell, cellIndex);
|
|
5379
5380
|
if (targetCell) {
|
|
5380
|
-
if (this.
|
|
5381
|
+
if (this.dataTable.isEditingCellValid()) {
|
|
5381
5382
|
this.closeEditingCell(true, event);
|
|
5382
5383
|
}
|
|
5383
5384
|
DomHandler.invokeElementMethod(event.target, 'blur');
|
|
@@ -5394,7 +5395,7 @@ class EditableColumn {
|
|
|
5394
5395
|
let cellIndex = DomHandler.index(currentCell);
|
|
5395
5396
|
let targetCell = this.findPrevEditableColumnByIndex(currentCell, cellIndex);
|
|
5396
5397
|
if (targetCell) {
|
|
5397
|
-
if (this.
|
|
5398
|
+
if (this.dataTable.isEditingCellValid()) {
|
|
5398
5399
|
this.closeEditingCell(true, event);
|
|
5399
5400
|
}
|
|
5400
5401
|
DomHandler.invokeElementMethod(event.target, 'blur');
|
|
@@ -5431,7 +5432,7 @@ class EditableColumn {
|
|
|
5431
5432
|
if (currentCell) {
|
|
5432
5433
|
let targetCell = this.findPreviousEditableColumn(currentCell);
|
|
5433
5434
|
if (targetCell) {
|
|
5434
|
-
if (this.
|
|
5435
|
+
if (this.dataTable.isEditingCellValid()) {
|
|
5435
5436
|
this.closeEditingCell(true, event);
|
|
5436
5437
|
}
|
|
5437
5438
|
DomHandler.invokeElementMethod(event.target, 'blur');
|
|
@@ -5445,7 +5446,7 @@ class EditableColumn {
|
|
|
5445
5446
|
if (currentCell) {
|
|
5446
5447
|
let targetCell = this.findNextEditableColumn(currentCell);
|
|
5447
5448
|
if (targetCell) {
|
|
5448
|
-
if (this.
|
|
5449
|
+
if (this.dataTable.isEditingCellValid()) {
|
|
5449
5450
|
this.closeEditingCell(true, event);
|
|
5450
5451
|
}
|
|
5451
5452
|
DomHandler.invokeElementMethod(event.target, 'blur');
|
|
@@ -5453,7 +5454,7 @@ class EditableColumn {
|
|
|
5453
5454
|
event.preventDefault();
|
|
5454
5455
|
}
|
|
5455
5456
|
else {
|
|
5456
|
-
if (this.
|
|
5457
|
+
if (this.dataTable.isEditingCellValid()) {
|
|
5457
5458
|
this.closeEditingCell(true, event);
|
|
5458
5459
|
}
|
|
5459
5460
|
}
|
|
@@ -5524,21 +5525,21 @@ class EditableColumn {
|
|
|
5524
5525
|
isEnabled() {
|
|
5525
5526
|
return this.pEditableColumnDisabled !== true;
|
|
5526
5527
|
}
|
|
5527
|
-
|
|
5528
|
-
if (this.
|
|
5529
|
-
this.
|
|
5528
|
+
onDestroy() {
|
|
5529
|
+
if (this.dataTable.overlaySubscription) {
|
|
5530
|
+
this.dataTable.overlaySubscription.unsubscribe();
|
|
5530
5531
|
}
|
|
5531
5532
|
}
|
|
5532
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5533
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.
|
|
5533
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: EditableColumn, deps: [{ token: Table }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5534
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.4", type: EditableColumn, isStandalone: false, selector: "[pEditableColumn]", inputs: { data: ["pEditableColumn", "data"], field: ["pEditableColumnField", "field"], rowIndex: ["pEditableColumnRowIndex", "rowIndex"], pEditableColumnDisabled: ["pEditableColumnDisabled", "pEditableColumnDisabled", booleanAttribute], pFocusCellSelector: "pFocusCellSelector" }, host: { listeners: { "click": "onClick($event)", "keydown.enter": "onEnterKeyDown($event)", "keydown.tab": "onShiftKeyDown($event)", "keydown.escape": "onEscapeKeyDown($event)", "keydown.shift.tab": "onShiftKeyDown($event)", "keydown.meta.tab": "onShiftKeyDown($event)", "keydown.arrowdown": "onArrowDown($event)", "keydown.arrowup": "onArrowUp($event)", "keydown.arrowleft": "onArrowLeft($event)", "keydown.arrowright": "onArrowRight($event)" } }, usesInheritance: true, ngImport: i0 });
|
|
5534
5535
|
}
|
|
5535
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: EditableColumn, decorators: [{
|
|
5536
5537
|
type: Directive,
|
|
5537
5538
|
args: [{
|
|
5538
5539
|
selector: '[pEditableColumn]',
|
|
5539
5540
|
standalone: false
|
|
5540
5541
|
}]
|
|
5541
|
-
}], ctorParameters: () => [{ type: Table }, { type: i0.
|
|
5542
|
+
}], ctorParameters: () => [{ type: Table }, { type: i0.NgZone }], propDecorators: { data: [{
|
|
5542
5543
|
type: Input,
|
|
5543
5544
|
args: ['pEditableColumn']
|
|
5544
5545
|
}], field: [{
|
|
@@ -5586,47 +5587,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
5586
5587
|
type: HostListener,
|
|
5587
5588
|
args: ['keydown.arrowright', ['$event']]
|
|
5588
5589
|
}] } });
|
|
5589
|
-
class EditableRow {
|
|
5590
|
-
el;
|
|
5590
|
+
class EditableRow extends BaseComponent {
|
|
5591
5591
|
data;
|
|
5592
5592
|
pEditableRowDisabled;
|
|
5593
|
-
constructor(el) {
|
|
5594
|
-
this.el = el;
|
|
5595
|
-
}
|
|
5596
5593
|
isEnabled() {
|
|
5597
5594
|
return this.pEditableRowDisabled !== true;
|
|
5598
5595
|
}
|
|
5599
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5600
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.
|
|
5596
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: EditableRow, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5597
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.4", type: EditableRow, isStandalone: false, selector: "[pEditableRow]", inputs: { data: ["pEditableRow", "data"], pEditableRowDisabled: ["pEditableRowDisabled", "pEditableRowDisabled", booleanAttribute] }, usesInheritance: true, ngImport: i0 });
|
|
5601
5598
|
}
|
|
5602
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: EditableRow, decorators: [{
|
|
5603
5600
|
type: Directive,
|
|
5604
5601
|
args: [{
|
|
5605
5602
|
selector: '[pEditableRow]',
|
|
5606
5603
|
standalone: false
|
|
5607
5604
|
}]
|
|
5608
|
-
}],
|
|
5605
|
+
}], propDecorators: { data: [{
|
|
5609
5606
|
type: Input,
|
|
5610
5607
|
args: ['pEditableRow']
|
|
5611
5608
|
}], pEditableRowDisabled: [{
|
|
5612
5609
|
type: Input,
|
|
5613
5610
|
args: [{ transform: booleanAttribute }]
|
|
5614
5611
|
}] } });
|
|
5615
|
-
class InitEditableRow {
|
|
5616
|
-
|
|
5612
|
+
class InitEditableRow extends BaseComponent {
|
|
5613
|
+
dataTable;
|
|
5617
5614
|
editableRow;
|
|
5618
|
-
constructor(
|
|
5619
|
-
|
|
5615
|
+
constructor(dataTable, editableRow) {
|
|
5616
|
+
super();
|
|
5617
|
+
this.dataTable = dataTable;
|
|
5620
5618
|
this.editableRow = editableRow;
|
|
5621
5619
|
}
|
|
5622
5620
|
onClick(event) {
|
|
5623
|
-
this.
|
|
5621
|
+
this.dataTable.initRowEdit(this.editableRow.data);
|
|
5624
5622
|
event.preventDefault();
|
|
5625
5623
|
}
|
|
5626
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5627
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
5624
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: InitEditableRow, deps: [{ token: Table }, { token: EditableRow }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5625
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.4", type: InitEditableRow, isStandalone: false, selector: "[pInitEditableRow]", host: { listeners: { "click": "onClick($event)" }, classAttribute: "p-datatable-row-editor-init" }, usesInheritance: true, ngImport: i0 });
|
|
5628
5626
|
}
|
|
5629
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5627
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: InitEditableRow, decorators: [{
|
|
5630
5628
|
type: Directive,
|
|
5631
5629
|
args: [{
|
|
5632
5630
|
selector: '[pInitEditableRow]',
|
|
@@ -5639,21 +5637,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
5639
5637
|
type: HostListener,
|
|
5640
5638
|
args: ['click', ['$event']]
|
|
5641
5639
|
}] } });
|
|
5642
|
-
class SaveEditableRow {
|
|
5643
|
-
|
|
5640
|
+
class SaveEditableRow extends BaseComponent {
|
|
5641
|
+
dataTable;
|
|
5644
5642
|
editableRow;
|
|
5645
|
-
constructor(
|
|
5646
|
-
|
|
5643
|
+
constructor(dataTable, editableRow) {
|
|
5644
|
+
super();
|
|
5645
|
+
this.dataTable = dataTable;
|
|
5647
5646
|
this.editableRow = editableRow;
|
|
5648
5647
|
}
|
|
5649
5648
|
onClick(event) {
|
|
5650
|
-
this.
|
|
5649
|
+
this.dataTable.saveRowEdit(this.editableRow.data, this.editableRow.el.nativeElement);
|
|
5651
5650
|
event.preventDefault();
|
|
5652
5651
|
}
|
|
5653
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5654
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
5652
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: SaveEditableRow, deps: [{ token: Table }, { token: EditableRow }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5653
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.4", type: SaveEditableRow, isStandalone: false, selector: "[pSaveEditableRow]", host: { listeners: { "click": "onClick($event)" }, classAttribute: "p-datatable-row-editor-save" }, usesInheritance: true, ngImport: i0 });
|
|
5655
5654
|
}
|
|
5656
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: SaveEditableRow, decorators: [{
|
|
5657
5656
|
type: Directive,
|
|
5658
5657
|
args: [{
|
|
5659
5658
|
selector: '[pSaveEditableRow]',
|
|
@@ -5667,22 +5666,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
5667
5666
|
args: ['click', ['$event']]
|
|
5668
5667
|
}] } });
|
|
5669
5668
|
class CancelEditableRow extends BaseComponent {
|
|
5670
|
-
|
|
5669
|
+
dataTable;
|
|
5671
5670
|
editableRow;
|
|
5672
|
-
constructor(
|
|
5671
|
+
constructor(dataTable, editableRow) {
|
|
5673
5672
|
super();
|
|
5674
|
-
this.
|
|
5673
|
+
this.dataTable = dataTable;
|
|
5675
5674
|
this.editableRow = editableRow;
|
|
5676
5675
|
}
|
|
5677
5676
|
_componentStyle = inject(TableStyle);
|
|
5678
5677
|
onClick(event) {
|
|
5679
|
-
this.
|
|
5678
|
+
this.dataTable.cancelRowEdit(this.editableRow.data);
|
|
5680
5679
|
event.preventDefault();
|
|
5681
5680
|
}
|
|
5682
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5683
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
5681
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: CancelEditableRow, deps: [{ token: Table }, { token: EditableRow }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5682
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.4", type: CancelEditableRow, isStandalone: false, selector: "[pCancelEditableRow]", host: { listeners: { "click": "onClick($event)" }, properties: { "class": "cx('rowEditorCancel')" } }, providers: [TableStyle], usesInheritance: true, ngImport: i0 });
|
|
5684
5683
|
}
|
|
5685
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: CancelEditableRow, decorators: [{
|
|
5686
5685
|
type: Directive,
|
|
5687
5686
|
args: [{
|
|
5688
5687
|
selector: '[pCancelEditableRow]',
|
|
@@ -5696,8 +5695,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
5696
5695
|
type: HostListener,
|
|
5697
5696
|
args: ['click', ['$event']]
|
|
5698
5697
|
}] } });
|
|
5699
|
-
class CellEditor {
|
|
5700
|
-
|
|
5698
|
+
class CellEditor extends BaseComponent {
|
|
5699
|
+
dataTable;
|
|
5701
5700
|
editableColumn;
|
|
5702
5701
|
editableRow;
|
|
5703
5702
|
_templates;
|
|
@@ -5705,12 +5704,13 @@ class CellEditor {
|
|
|
5705
5704
|
_outputTemplate;
|
|
5706
5705
|
inputTemplate;
|
|
5707
5706
|
outputTemplate;
|
|
5708
|
-
constructor(
|
|
5709
|
-
|
|
5707
|
+
constructor(dataTable, editableColumn, editableRow) {
|
|
5708
|
+
super();
|
|
5709
|
+
this.dataTable = dataTable;
|
|
5710
5710
|
this.editableColumn = editableColumn;
|
|
5711
5711
|
this.editableRow = editableRow;
|
|
5712
5712
|
}
|
|
5713
|
-
|
|
5713
|
+
onAfterContentInit() {
|
|
5714
5714
|
this._templates.forEach((item) => {
|
|
5715
5715
|
switch (item.getType()) {
|
|
5716
5716
|
case 'input':
|
|
@@ -5723,19 +5723,19 @@ class CellEditor {
|
|
|
5723
5723
|
});
|
|
5724
5724
|
}
|
|
5725
5725
|
get editing() {
|
|
5726
|
-
return (this.
|
|
5726
|
+
return ((this.dataTable.editingCell && this.editableColumn && this.dataTable.editingCell === this.editableColumn.el.nativeElement) || (this.editableRow && this.dataTable.editMode === 'row' && this.dataTable.isRowEditing(this.editableRow.data)));
|
|
5727
5727
|
}
|
|
5728
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5729
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
5728
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: CellEditor, deps: [{ token: Table }, { token: EditableColumn, optional: true }, { token: EditableRow, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
5729
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: CellEditor, isStandalone: false, selector: "p-cellEditor", queries: [{ propertyName: "_inputTemplate", first: true, predicate: ["input"], descendants: true }, { propertyName: "_outputTemplate", first: true, predicate: ["output"], descendants: true }, { propertyName: "_templates", predicate: PrimeTemplate }], usesInheritance: true, ngImport: i0, template: `
|
|
5730
5730
|
<ng-container *ngIf="editing">
|
|
5731
5731
|
<ng-container *ngTemplateOutlet="inputTemplate || _inputTemplate"></ng-container>
|
|
5732
5732
|
</ng-container>
|
|
5733
5733
|
<ng-container *ngIf="!editing">
|
|
5734
5734
|
<ng-container *ngTemplateOutlet="outputTemplate || _outputTemplate"></ng-container>
|
|
5735
5735
|
</ng-container>
|
|
5736
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
5736
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
5737
5737
|
}
|
|
5738
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5738
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: CellEditor, decorators: [{
|
|
5739
5739
|
type: Component,
|
|
5740
5740
|
args: [{
|
|
5741
5741
|
selector: 'p-cellEditor',
|
|
@@ -5764,8 +5764,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
5764
5764
|
type: ContentChild,
|
|
5765
5765
|
args: ['output']
|
|
5766
5766
|
}] } });
|
|
5767
|
-
class TableRadioButton {
|
|
5768
|
-
|
|
5767
|
+
class TableRadioButton extends BaseComponent {
|
|
5768
|
+
dataTable;
|
|
5769
5769
|
cd;
|
|
5770
5770
|
value;
|
|
5771
5771
|
disabled = input(undefined, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
@@ -5776,21 +5776,22 @@ class TableRadioButton {
|
|
|
5776
5776
|
inputViewChild;
|
|
5777
5777
|
checked;
|
|
5778
5778
|
subscription;
|
|
5779
|
-
constructor(
|
|
5780
|
-
|
|
5779
|
+
constructor(dataTable, cd) {
|
|
5780
|
+
super();
|
|
5781
|
+
this.dataTable = dataTable;
|
|
5781
5782
|
this.cd = cd;
|
|
5782
|
-
this.subscription = this.
|
|
5783
|
-
this.checked = this.
|
|
5784
|
-
this.ariaLabel = this.ariaLabel || (this.
|
|
5783
|
+
this.subscription = this.dataTable.tableService.selectionSource$.subscribe(() => {
|
|
5784
|
+
this.checked = this.dataTable.isSelected(this.value);
|
|
5785
|
+
this.ariaLabel = this.ariaLabel || (this.dataTable.config.translation.aria ? (this.checked ? this.dataTable.config.translation.aria.selectRow : this.dataTable.config.translation.aria.unselectRow) : undefined);
|
|
5785
5786
|
this.cd.markForCheck();
|
|
5786
5787
|
});
|
|
5787
5788
|
}
|
|
5788
|
-
|
|
5789
|
-
this.checked = this.
|
|
5789
|
+
onInit() {
|
|
5790
|
+
this.checked = this.dataTable.isSelected(this.value);
|
|
5790
5791
|
}
|
|
5791
5792
|
onClick(event) {
|
|
5792
5793
|
if (!this.disabled()) {
|
|
5793
|
-
this.
|
|
5794
|
+
this.dataTable.toggleRowWithRadio({
|
|
5794
5795
|
originalEvent: event.originalEvent,
|
|
5795
5796
|
rowIndex: this.index()
|
|
5796
5797
|
}, this.value);
|
|
@@ -5798,20 +5799,20 @@ class TableRadioButton {
|
|
|
5798
5799
|
}
|
|
5799
5800
|
DomHandler.clearSelection();
|
|
5800
5801
|
}
|
|
5801
|
-
|
|
5802
|
+
onDestroy() {
|
|
5802
5803
|
if (this.subscription) {
|
|
5803
5804
|
this.subscription.unsubscribe();
|
|
5804
5805
|
}
|
|
5805
5806
|
}
|
|
5806
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5807
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.
|
|
5807
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableRadioButton, deps: [{ token: Table }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5808
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.4", type: TableRadioButton, isStandalone: false, selector: "p-tableRadioButton", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "inputViewChild", first: true, predicate: ["rb"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<p-radioButton #rb [(ngModel)]="checked" [disabled]="disabled()" [inputId]="inputId()" [name]="name()" [ariaLabel]="ariaLabel" [binary]="true" [value]="value" (onClick)="onClick($event)" /> `, isInline: true, dependencies: [{ kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i8.RadioButton, selector: "p-radioButton, p-radiobutton, p-radio-button", inputs: ["value", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "styleClass", "autofocus", "binary", "variant", "size"], outputs: ["onClick", "onFocus", "onBlur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5808
5809
|
}
|
|
5809
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableRadioButton, decorators: [{
|
|
5810
5811
|
type: Component,
|
|
5811
5812
|
args: [{
|
|
5812
5813
|
selector: 'p-tableRadioButton',
|
|
5813
5814
|
standalone: false,
|
|
5814
|
-
template:
|
|
5815
|
+
template: `<p-radioButton #rb [(ngModel)]="checked" [disabled]="disabled()" [inputId]="inputId()" [name]="name()" [ariaLabel]="ariaLabel" [binary]="true" [value]="value" (onClick)="onClick($event)" /> `,
|
|
5815
5816
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5816
5817
|
encapsulation: ViewEncapsulation.None
|
|
5817
5818
|
}]
|
|
@@ -5823,10 +5824,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
5823
5824
|
type: ViewChild,
|
|
5824
5825
|
args: ['rb']
|
|
5825
5826
|
}] } });
|
|
5826
|
-
class TableCheckbox {
|
|
5827
|
-
|
|
5827
|
+
class TableCheckbox extends BaseComponent {
|
|
5828
|
+
dataTable;
|
|
5828
5829
|
tableService;
|
|
5829
|
-
cd;
|
|
5830
5830
|
value;
|
|
5831
5831
|
disabled = input(undefined, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
5832
5832
|
required = input(undefined, ...(ngDevMode ? [{ debugName: "required", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
@@ -5836,52 +5836,52 @@ class TableCheckbox {
|
|
|
5836
5836
|
ariaLabel;
|
|
5837
5837
|
checked;
|
|
5838
5838
|
subscription;
|
|
5839
|
-
constructor(
|
|
5840
|
-
|
|
5839
|
+
constructor(dataTable, tableService) {
|
|
5840
|
+
super();
|
|
5841
|
+
this.dataTable = dataTable;
|
|
5841
5842
|
this.tableService = tableService;
|
|
5842
|
-
this.
|
|
5843
|
-
|
|
5844
|
-
this.
|
|
5845
|
-
this.ariaLabel = this.ariaLabel || (this.dt.config.translation.aria ? (this.checked ? this.dt.config.translation.aria.selectRow : this.dt.config.translation.aria.unselectRow) : undefined);
|
|
5843
|
+
this.subscription = this.dataTable.tableService.selectionSource$.subscribe(() => {
|
|
5844
|
+
this.checked = this.dataTable.isSelected(this.value);
|
|
5845
|
+
this.ariaLabel = this.ariaLabel || (this.dataTable.config.translation.aria ? (this.checked ? this.dataTable.config.translation.aria.selectRow : this.dataTable.config.translation.aria.unselectRow) : undefined);
|
|
5846
5846
|
this.cd.markForCheck();
|
|
5847
5847
|
});
|
|
5848
5848
|
}
|
|
5849
|
-
|
|
5850
|
-
this.checked = this.
|
|
5849
|
+
onInit() {
|
|
5850
|
+
this.checked = this.dataTable.isSelected(this.value);
|
|
5851
5851
|
}
|
|
5852
5852
|
onClick({ originalEvent }) {
|
|
5853
5853
|
if (!this.disabled()) {
|
|
5854
|
-
this.
|
|
5854
|
+
this.dataTable.toggleRowWithCheckbox({
|
|
5855
5855
|
originalEvent: originalEvent,
|
|
5856
5856
|
rowIndex: this.index() || 0
|
|
5857
5857
|
}, this.value);
|
|
5858
5858
|
}
|
|
5859
5859
|
DomHandler.clearSelection();
|
|
5860
5860
|
}
|
|
5861
|
-
|
|
5861
|
+
onDestroy() {
|
|
5862
5862
|
if (this.subscription) {
|
|
5863
5863
|
this.subscription.unsubscribe();
|
|
5864
5864
|
}
|
|
5865
5865
|
}
|
|
5866
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5867
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
5866
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableCheckbox, deps: [{ token: Table }, { token: TableService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5867
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: TableCheckbox, isStandalone: false, selector: "p-tableCheckbox", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
5868
5868
|
<p-checkbox [(ngModel)]="checked" [binary]="true" (onChange)="onClick($event)" [required]="required()" [disabled]="disabled()" [inputId]="inputId()" [name]="name()" [ariaLabel]="ariaLabel">
|
|
5869
|
-
@if (
|
|
5869
|
+
@if (dataTable.checkboxIconTemplate || dataTable._checkboxIconTemplate; as template) {
|
|
5870
5870
|
<ng-template pTemplate="icon">
|
|
5871
5871
|
<ng-template *ngTemplateOutlet="template; context: { $implicit: checked }" />
|
|
5872
5872
|
</ng-template>
|
|
5873
5873
|
}
|
|
5874
5874
|
</p-checkbox>
|
|
5875
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
5875
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i9.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5876
5876
|
}
|
|
5877
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableCheckbox, decorators: [{
|
|
5878
5878
|
type: Component,
|
|
5879
5879
|
args: [{
|
|
5880
5880
|
selector: 'p-tableCheckbox',
|
|
5881
5881
|
standalone: false,
|
|
5882
5882
|
template: `
|
|
5883
5883
|
<p-checkbox [(ngModel)]="checked" [binary]="true" (onChange)="onClick($event)" [required]="required()" [disabled]="disabled()" [inputId]="inputId()" [name]="name()" [ariaLabel]="ariaLabel">
|
|
5884
|
-
@if (
|
|
5884
|
+
@if (dataTable.checkboxIconTemplate || dataTable._checkboxIconTemplate; as template) {
|
|
5885
5885
|
<ng-template pTemplate="icon">
|
|
5886
5886
|
<ng-template *ngTemplateOutlet="template; context: { $implicit: checked }" />
|
|
5887
5887
|
</ng-template>
|
|
@@ -5891,15 +5891,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
5891
5891
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5892
5892
|
encapsulation: ViewEncapsulation.None
|
|
5893
5893
|
}]
|
|
5894
|
-
}], ctorParameters: () => [{ type: Table }, { type: TableService }
|
|
5894
|
+
}], ctorParameters: () => [{ type: Table }, { type: TableService }], propDecorators: { value: [{
|
|
5895
5895
|
type: Input
|
|
5896
5896
|
}], ariaLabel: [{
|
|
5897
5897
|
type: Input
|
|
5898
5898
|
}] } });
|
|
5899
|
-
class TableHeaderCheckbox {
|
|
5900
|
-
|
|
5899
|
+
class TableHeaderCheckbox extends BaseComponent {
|
|
5900
|
+
dataTable;
|
|
5901
5901
|
tableService;
|
|
5902
|
-
|
|
5902
|
+
hostName = 'Table';
|
|
5903
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
5904
|
+
onAfterViewChecked() {
|
|
5905
|
+
this.bindDirectiveInstance.setAttrs(this.ptm('headerCheckbox'));
|
|
5906
|
+
}
|
|
5903
5907
|
disabled = input(undefined, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
5904
5908
|
inputId = input(...(ngDevMode ? [undefined, { debugName: "inputId" }] : []));
|
|
5905
5909
|
name = input(...(ngDevMode ? [undefined, { debugName: "name" }] : []));
|
|
@@ -5907,33 +5911,33 @@ class TableHeaderCheckbox {
|
|
|
5907
5911
|
checked;
|
|
5908
5912
|
selectionChangeSubscription;
|
|
5909
5913
|
valueChangeSubscription;
|
|
5910
|
-
constructor(
|
|
5911
|
-
|
|
5914
|
+
constructor(dataTable, tableService) {
|
|
5915
|
+
super();
|
|
5916
|
+
this.dataTable = dataTable;
|
|
5912
5917
|
this.tableService = tableService;
|
|
5913
|
-
this.
|
|
5914
|
-
this.valueChangeSubscription = this.dt.tableService.valueSource$.subscribe(() => {
|
|
5918
|
+
this.valueChangeSubscription = this.dataTable.tableService.valueSource$.subscribe(() => {
|
|
5915
5919
|
this.checked = this.updateCheckedState();
|
|
5916
|
-
this.ariaLabel = this.ariaLabel || (this.
|
|
5920
|
+
this.ariaLabel = this.ariaLabel || (this.dataTable.config.translation.aria ? (this.checked ? this.dataTable.config.translation.aria.selectAll : this.dataTable.config.translation.aria.unselectAll) : undefined);
|
|
5917
5921
|
});
|
|
5918
|
-
this.selectionChangeSubscription = this.
|
|
5922
|
+
this.selectionChangeSubscription = this.dataTable.tableService.selectionSource$.subscribe(() => {
|
|
5919
5923
|
this.checked = this.updateCheckedState();
|
|
5920
5924
|
});
|
|
5921
5925
|
}
|
|
5922
|
-
|
|
5926
|
+
onInit() {
|
|
5923
5927
|
this.checked = this.updateCheckedState();
|
|
5924
5928
|
}
|
|
5925
5929
|
onClick(event) {
|
|
5926
5930
|
if (!this.disabled()) {
|
|
5927
|
-
if (this.
|
|
5928
|
-
this.
|
|
5931
|
+
if (this.dataTable.value && this.dataTable.value.length > 0) {
|
|
5932
|
+
this.dataTable.toggleRowsWithCheckbox(event, this.checked || false);
|
|
5929
5933
|
}
|
|
5930
5934
|
}
|
|
5931
5935
|
DomHandler.clearSelection();
|
|
5932
5936
|
}
|
|
5933
5937
|
isDisabled() {
|
|
5934
|
-
return this.disabled() || !this.
|
|
5938
|
+
return this.disabled() || !this.dataTable.value || !this.dataTable.value.length;
|
|
5935
5939
|
}
|
|
5936
|
-
|
|
5940
|
+
onDestroy() {
|
|
5937
5941
|
if (this.selectionChangeSubscription) {
|
|
5938
5942
|
this.selectionChangeSubscription.unsubscribe();
|
|
5939
5943
|
}
|
|
@@ -5943,35 +5947,35 @@ class TableHeaderCheckbox {
|
|
|
5943
5947
|
}
|
|
5944
5948
|
updateCheckedState() {
|
|
5945
5949
|
this.cd.markForCheck();
|
|
5946
|
-
if (this.
|
|
5947
|
-
return this.
|
|
5950
|
+
if (this.dataTable._selectAll !== null) {
|
|
5951
|
+
return this.dataTable._selectAll;
|
|
5948
5952
|
}
|
|
5949
5953
|
else {
|
|
5950
|
-
const data = this.
|
|
5951
|
-
const val = this.
|
|
5952
|
-
const selectableVal = this.
|
|
5953
|
-
return ObjectUtils.isNotEmpty(selectableVal) && ObjectUtils.isNotEmpty(this.
|
|
5954
|
+
const data = this.dataTable.selectionPageOnly ? this.dataTable.dataToRender(this.dataTable.processedData) : this.dataTable.processedData;
|
|
5955
|
+
const val = this.dataTable.frozenValue ? [...this.dataTable.frozenValue, ...data] : data;
|
|
5956
|
+
const selectableVal = this.dataTable.rowSelectable ? val.filter((data, index) => this.dataTable.rowSelectable({ data, index })) : val;
|
|
5957
|
+
return ObjectUtils.isNotEmpty(selectableVal) && ObjectUtils.isNotEmpty(this.dataTable.selection) && selectableVal.every((v) => this.dataTable.selection.some((s) => this.dataTable.equals(v, s)));
|
|
5954
5958
|
}
|
|
5955
5959
|
}
|
|
5956
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5957
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
5958
|
-
<p-checkbox [(ngModel)]="checked" (onChange)="onClick($event)" [binary]="true" [disabled]="isDisabled()" [inputId]="inputId()" [name]="name()" [ariaLabel]="ariaLabel">
|
|
5959
|
-
@if (
|
|
5960
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableHeaderCheckbox, deps: [{ token: Table }, { token: TableService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5961
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: TableHeaderCheckbox, isStandalone: false, selector: "p-tableHeaderCheckbox", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
5962
|
+
<p-checkbox [pt]="ptm('pcCheckbox')" [(ngModel)]="checked" (onChange)="onClick($event)" [binary]="true" [disabled]="isDisabled()" [inputId]="inputId()" [name]="name()" [ariaLabel]="ariaLabel">
|
|
5963
|
+
@if (dataTable.headerCheckboxIconTemplate || dataTable._headerCheckboxIconTemplate; as template) {
|
|
5960
5964
|
<ng-template pTemplate="icon">
|
|
5961
5965
|
<ng-template *ngTemplateOutlet="template; context: { $implicit: checked }" />
|
|
5962
5966
|
</ng-template>
|
|
5963
5967
|
}
|
|
5964
5968
|
</p-checkbox>
|
|
5965
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
5969
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i9.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5966
5970
|
}
|
|
5967
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableHeaderCheckbox, decorators: [{
|
|
5968
5972
|
type: Component,
|
|
5969
5973
|
args: [{
|
|
5970
5974
|
selector: 'p-tableHeaderCheckbox',
|
|
5971
5975
|
standalone: false,
|
|
5972
5976
|
template: `
|
|
5973
|
-
<p-checkbox [(ngModel)]="checked" (onChange)="onClick($event)" [binary]="true" [disabled]="isDisabled()" [inputId]="inputId()" [name]="name()" [ariaLabel]="ariaLabel">
|
|
5974
|
-
@if (
|
|
5977
|
+
<p-checkbox [pt]="ptm('pcCheckbox')" [(ngModel)]="checked" (onChange)="onClick($event)" [binary]="true" [disabled]="isDisabled()" [inputId]="inputId()" [name]="name()" [ariaLabel]="ariaLabel">
|
|
5978
|
+
@if (dataTable.headerCheckboxIconTemplate || dataTable._headerCheckboxIconTemplate; as template) {
|
|
5975
5979
|
<ng-template pTemplate="icon">
|
|
5976
5980
|
<ng-template *ngTemplateOutlet="template; context: { $implicit: checked }" />
|
|
5977
5981
|
</ng-template>
|
|
@@ -5979,25 +5983,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
5979
5983
|
</p-checkbox>
|
|
5980
5984
|
`,
|
|
5981
5985
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5982
|
-
encapsulation: ViewEncapsulation.None
|
|
5986
|
+
encapsulation: ViewEncapsulation.None,
|
|
5987
|
+
hostDirectives: [Bind]
|
|
5983
5988
|
}]
|
|
5984
|
-
}], ctorParameters: () => [{ type: Table }, { type: TableService }
|
|
5989
|
+
}], ctorParameters: () => [{ type: Table }, { type: TableService }], propDecorators: { ariaLabel: [{
|
|
5985
5990
|
type: Input
|
|
5986
5991
|
}] } });
|
|
5987
5992
|
class ReorderableRowHandle extends BaseComponent {
|
|
5988
5993
|
el;
|
|
5994
|
+
hostName = 'Table';
|
|
5995
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
5996
|
+
onAfterViewChecked() {
|
|
5997
|
+
this.bindDirectiveInstance.setAttrs(this.ptm('reorderableRowHandle'));
|
|
5998
|
+
}
|
|
5989
5999
|
_componentStyle = inject(TableStyle);
|
|
5990
6000
|
constructor(el) {
|
|
5991
6001
|
super();
|
|
5992
6002
|
this.el = el;
|
|
5993
6003
|
}
|
|
5994
|
-
|
|
6004
|
+
onAfterViewInit() {
|
|
5995
6005
|
// DomHandler.addClass(this.el.nativeElement, 'p-datatable-reorderable-row-handle');
|
|
5996
6006
|
}
|
|
5997
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5998
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
6007
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ReorderableRowHandle, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6008
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.4", type: ReorderableRowHandle, isStandalone: false, selector: "[pReorderableRowHandle]", host: { properties: { "class": "cx('reorderableRowHandle')" } }, providers: [TableStyle], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
5999
6009
|
}
|
|
6000
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6010
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ReorderableRowHandle, decorators: [{
|
|
6001
6011
|
type: Directive,
|
|
6002
6012
|
args: [{
|
|
6003
6013
|
selector: '[pReorderableRowHandle]',
|
|
@@ -6005,14 +6015,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
6005
6015
|
host: {
|
|
6006
6016
|
'[class]': "cx('reorderableRowHandle')"
|
|
6007
6017
|
},
|
|
6008
|
-
providers: [TableStyle]
|
|
6018
|
+
providers: [TableStyle],
|
|
6019
|
+
hostDirectives: [Bind]
|
|
6009
6020
|
}]
|
|
6010
6021
|
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
6011
|
-
class ReorderableRow {
|
|
6012
|
-
|
|
6013
|
-
dt;
|
|
6014
|
-
el;
|
|
6022
|
+
class ReorderableRow extends BaseComponent {
|
|
6023
|
+
dataTable;
|
|
6015
6024
|
zone;
|
|
6025
|
+
hostName = 'Table';
|
|
6026
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
6027
|
+
onAfterViewChecked() {
|
|
6028
|
+
this.bindDirectiveInstance.setAttrs(this.ptm('reorderableRow'));
|
|
6029
|
+
}
|
|
6016
6030
|
index;
|
|
6017
6031
|
pReorderableRowDisabled;
|
|
6018
6032
|
mouseDownListener;
|
|
@@ -6021,13 +6035,12 @@ class ReorderableRow {
|
|
|
6021
6035
|
dragOverListener;
|
|
6022
6036
|
dragLeaveListener;
|
|
6023
6037
|
dropListener;
|
|
6024
|
-
constructor(
|
|
6025
|
-
|
|
6026
|
-
this.
|
|
6027
|
-
this.el = el;
|
|
6038
|
+
constructor(dataTable, zone) {
|
|
6039
|
+
super();
|
|
6040
|
+
this.dataTable = dataTable;
|
|
6028
6041
|
this.zone = zone;
|
|
6029
6042
|
}
|
|
6030
|
-
|
|
6043
|
+
onAfterViewInit() {
|
|
6031
6044
|
if (this.isEnabled()) {
|
|
6032
6045
|
this.el.nativeElement.droppable = true;
|
|
6033
6046
|
this.bindEvents();
|
|
@@ -6079,41 +6092,42 @@ class ReorderableRow {
|
|
|
6079
6092
|
return false;
|
|
6080
6093
|
}
|
|
6081
6094
|
onDragStart(event) {
|
|
6082
|
-
this.
|
|
6095
|
+
this.dataTable.onRowDragStart(event, this.index);
|
|
6083
6096
|
}
|
|
6084
6097
|
onDragEnd(event) {
|
|
6085
|
-
this.
|
|
6098
|
+
this.dataTable.onRowDragEnd(event);
|
|
6086
6099
|
this.el.nativeElement.draggable = false;
|
|
6087
6100
|
}
|
|
6088
6101
|
onDragOver(event) {
|
|
6089
|
-
this.
|
|
6102
|
+
this.dataTable.onRowDragOver(event, this.index, this.el.nativeElement);
|
|
6090
6103
|
event.preventDefault();
|
|
6091
6104
|
}
|
|
6092
6105
|
onDragLeave(event) {
|
|
6093
|
-
this.
|
|
6106
|
+
this.dataTable.onRowDragLeave(event, this.el.nativeElement);
|
|
6094
6107
|
}
|
|
6095
6108
|
isEnabled() {
|
|
6096
6109
|
return this.pReorderableRowDisabled !== true;
|
|
6097
6110
|
}
|
|
6098
6111
|
onDrop(event) {
|
|
6099
|
-
if (this.isEnabled() && this.
|
|
6100
|
-
this.
|
|
6112
|
+
if (this.isEnabled() && this.dataTable.rowDragging) {
|
|
6113
|
+
this.dataTable.onRowDrop(event, this.el.nativeElement);
|
|
6101
6114
|
}
|
|
6102
6115
|
event.preventDefault();
|
|
6103
6116
|
}
|
|
6104
|
-
|
|
6117
|
+
onDestroy() {
|
|
6105
6118
|
this.unbindEvents();
|
|
6106
6119
|
}
|
|
6107
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6108
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.
|
|
6120
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ReorderableRow, deps: [{ token: Table }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6121
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.4", type: ReorderableRow, isStandalone: false, selector: "[pReorderableRow]", inputs: { index: ["pReorderableRow", "index"], pReorderableRowDisabled: ["pReorderableRowDisabled", "pReorderableRowDisabled", booleanAttribute] }, host: { listeners: { "drop": "onDrop($event)" } }, usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
6109
6122
|
}
|
|
6110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ReorderableRow, decorators: [{
|
|
6111
6124
|
type: Directive,
|
|
6112
6125
|
args: [{
|
|
6113
6126
|
selector: '[pReorderableRow]',
|
|
6114
|
-
standalone: false
|
|
6127
|
+
standalone: false,
|
|
6128
|
+
hostDirectives: [Bind]
|
|
6115
6129
|
}]
|
|
6116
|
-
}], ctorParameters: () => [{ type:
|
|
6130
|
+
}], ctorParameters: () => [{ type: Table }, { type: i0.NgZone }], propDecorators: { index: [{
|
|
6117
6131
|
type: Input,
|
|
6118
6132
|
args: ['pReorderableRow']
|
|
6119
6133
|
}], pReorderableRowDisabled: [{
|
|
@@ -6128,6 +6142,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
6128
6142
|
* @group Components
|
|
6129
6143
|
*/
|
|
6130
6144
|
class ColumnFilter extends BaseComponent {
|
|
6145
|
+
hostName = 'Table';
|
|
6146
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
6147
|
+
onAfterViewChecked() {
|
|
6148
|
+
this.bindDirectiveInstance.setAttrs(this.ptm('columnFilter'));
|
|
6149
|
+
}
|
|
6150
|
+
ptmFilterConstraintOptions(matchMode) {
|
|
6151
|
+
return {
|
|
6152
|
+
context: {
|
|
6153
|
+
highlighted: matchMode && this.isRowMatchModeSelected(matchMode.value)
|
|
6154
|
+
}
|
|
6155
|
+
};
|
|
6156
|
+
}
|
|
6131
6157
|
/**
|
|
6132
6158
|
* Property represented by the column.
|
|
6133
6159
|
* @group Props
|
|
@@ -6361,7 +6387,7 @@ class ColumnFilter extends BaseComponent {
|
|
|
6361
6387
|
overlayEventListener;
|
|
6362
6388
|
overlayId;
|
|
6363
6389
|
get fieldConstraints() {
|
|
6364
|
-
return this.
|
|
6390
|
+
return this.dataTable.filters ? this.dataTable.filters[this.field] : null;
|
|
6365
6391
|
}
|
|
6366
6392
|
get showRemoveIcon() {
|
|
6367
6393
|
return this.fieldConstraints ? this.fieldConstraints.length > 1 : false;
|
|
@@ -6405,14 +6431,11 @@ class ColumnFilter extends BaseComponent {
|
|
|
6405
6431
|
get filterConstraintAriaLabel() {
|
|
6406
6432
|
return this.config?.translation ? this.config?.translation?.aria?.filterConstraint : undefined;
|
|
6407
6433
|
}
|
|
6408
|
-
|
|
6434
|
+
dataTable = inject(Table);
|
|
6409
6435
|
overlayService = inject(OverlayService);
|
|
6410
|
-
|
|
6411
|
-
parentInstance = inject(forwardRef(() => Table));
|
|
6412
|
-
ngOnInit() {
|
|
6413
|
-
super.ngOnInit();
|
|
6436
|
+
onInit() {
|
|
6414
6437
|
this.overlayId = UniqueComponentId();
|
|
6415
|
-
if (!this.
|
|
6438
|
+
if (!this.dataTable.filters[this.field]) {
|
|
6416
6439
|
this.initFieldFilterConstraint();
|
|
6417
6440
|
}
|
|
6418
6441
|
this.translationSubscription = this.config.translationObserver.subscribe(() => {
|
|
@@ -6444,7 +6467,7 @@ class ColumnFilter extends BaseComponent {
|
|
|
6444
6467
|
}
|
|
6445
6468
|
];
|
|
6446
6469
|
}
|
|
6447
|
-
|
|
6470
|
+
onAfterContentInit() {
|
|
6448
6471
|
this._templates.forEach((item) => {
|
|
6449
6472
|
switch (item.getType()) {
|
|
6450
6473
|
case 'header':
|
|
@@ -6476,7 +6499,7 @@ class ColumnFilter extends BaseComponent {
|
|
|
6476
6499
|
}
|
|
6477
6500
|
initFieldFilterConstraint() {
|
|
6478
6501
|
let defaultMatchMode = this.getDefaultMatchMode();
|
|
6479
|
-
this.
|
|
6502
|
+
this.dataTable.filters[this.field] =
|
|
6480
6503
|
this.display == 'row'
|
|
6481
6504
|
? { value: null, matchMode: defaultMatchMode }
|
|
6482
6505
|
: [
|
|
@@ -6490,14 +6513,14 @@ class ColumnFilter extends BaseComponent {
|
|
|
6490
6513
|
onMenuMatchModeChange(value, filterMeta) {
|
|
6491
6514
|
filterMeta.matchMode = value;
|
|
6492
6515
|
if (!this.showApplyButton) {
|
|
6493
|
-
this.
|
|
6516
|
+
this.dataTable._filter();
|
|
6494
6517
|
}
|
|
6495
6518
|
}
|
|
6496
6519
|
onRowMatchModeChange(matchMode) {
|
|
6497
|
-
const fieldFilter = this.
|
|
6520
|
+
const fieldFilter = this.dataTable.filters[this.field];
|
|
6498
6521
|
fieldFilter.matchMode = matchMode;
|
|
6499
6522
|
if (fieldFilter.value) {
|
|
6500
|
-
this.
|
|
6523
|
+
this.dataTable._filter();
|
|
6501
6524
|
}
|
|
6502
6525
|
this.hide();
|
|
6503
6526
|
}
|
|
@@ -6529,10 +6552,10 @@ class ColumnFilter extends BaseComponent {
|
|
|
6529
6552
|
this.hide();
|
|
6530
6553
|
}
|
|
6531
6554
|
isRowMatchModeSelected(matchMode) {
|
|
6532
|
-
return this.
|
|
6555
|
+
return this.dataTable.filters[this.field].matchMode === matchMode;
|
|
6533
6556
|
}
|
|
6534
6557
|
addConstraint() {
|
|
6535
|
-
this.
|
|
6558
|
+
this.dataTable.filters[this.field].push({
|
|
6536
6559
|
value: null,
|
|
6537
6560
|
matchMode: this.getDefaultMatchMode(),
|
|
6538
6561
|
operator: this.getDefaultOperator()
|
|
@@ -6540,19 +6563,19 @@ class ColumnFilter extends BaseComponent {
|
|
|
6540
6563
|
DomHandler.focus(this.clearButtonViewChild?.nativeElement);
|
|
6541
6564
|
}
|
|
6542
6565
|
removeConstraint(filterMeta) {
|
|
6543
|
-
this.
|
|
6566
|
+
this.dataTable.filters[this.field] = this.dataTable.filters[this.field].filter((meta) => meta !== filterMeta);
|
|
6544
6567
|
if (!this.showApplyButton) {
|
|
6545
|
-
this.
|
|
6568
|
+
this.dataTable._filter();
|
|
6546
6569
|
}
|
|
6547
6570
|
DomHandler.focus(this.clearButtonViewChild?.nativeElement);
|
|
6548
6571
|
}
|
|
6549
6572
|
onOperatorChange(value) {
|
|
6550
|
-
this.
|
|
6573
|
+
this.dataTable.filters[this.field].forEach((filterMeta) => {
|
|
6551
6574
|
filterMeta.operator = value;
|
|
6552
6575
|
this.operator = value;
|
|
6553
6576
|
});
|
|
6554
6577
|
if (!this.showApplyButton) {
|
|
6555
|
-
this.
|
|
6578
|
+
this.dataTable._filter();
|
|
6556
6579
|
}
|
|
6557
6580
|
}
|
|
6558
6581
|
toggleMenu(event) {
|
|
@@ -6663,18 +6686,18 @@ class ColumnFilter extends BaseComponent {
|
|
|
6663
6686
|
}
|
|
6664
6687
|
}
|
|
6665
6688
|
getDefaultOperator() {
|
|
6666
|
-
return this.
|
|
6689
|
+
return this.dataTable.filters ? this.dataTable.filters[this.field][0].operator : this.operator;
|
|
6667
6690
|
}
|
|
6668
6691
|
hasRowFilter() {
|
|
6669
|
-
return this.
|
|
6692
|
+
return this.dataTable.filters[this.field] && !this.dataTable.isFilterBlank(this.dataTable.filters[this.field].value);
|
|
6670
6693
|
}
|
|
6671
6694
|
get hasFilter() {
|
|
6672
|
-
let fieldFilter = this.
|
|
6695
|
+
let fieldFilter = this.dataTable.filters[this.field];
|
|
6673
6696
|
if (fieldFilter) {
|
|
6674
6697
|
if (Array.isArray(fieldFilter))
|
|
6675
|
-
return !this.
|
|
6698
|
+
return !this.dataTable.isFilterBlank(fieldFilter[0].value);
|
|
6676
6699
|
else
|
|
6677
|
-
return !this.
|
|
6700
|
+
return !this.dataTable.isFilterBlank(fieldFilter.value);
|
|
6678
6701
|
}
|
|
6679
6702
|
return false;
|
|
6680
6703
|
}
|
|
@@ -6752,15 +6775,15 @@ class ColumnFilter extends BaseComponent {
|
|
|
6752
6775
|
}
|
|
6753
6776
|
clearFilter() {
|
|
6754
6777
|
this.initFieldFilterConstraint();
|
|
6755
|
-
this.
|
|
6778
|
+
this.dataTable._filter();
|
|
6756
6779
|
if (this.hideOnClear)
|
|
6757
6780
|
this.hide();
|
|
6758
6781
|
}
|
|
6759
6782
|
applyFilter() {
|
|
6760
|
-
this.
|
|
6783
|
+
this.dataTable._filter();
|
|
6761
6784
|
this.hide();
|
|
6762
6785
|
}
|
|
6763
|
-
|
|
6786
|
+
onDestroy() {
|
|
6764
6787
|
if (this.overlay) {
|
|
6765
6788
|
this.renderer.appendChild(this.el.nativeElement, this.overlay);
|
|
6766
6789
|
ZIndexUtils.clear(this.overlay);
|
|
@@ -6775,18 +6798,17 @@ class ColumnFilter extends BaseComponent {
|
|
|
6775
6798
|
if (this.overlaySubscription) {
|
|
6776
6799
|
this.overlaySubscription.unsubscribe();
|
|
6777
6800
|
}
|
|
6778
|
-
super.ngOnDestroy();
|
|
6779
6801
|
}
|
|
6780
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6781
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
6782
|
-
<div [class]="cx('filter')">
|
|
6802
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ColumnFilter, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
6803
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ColumnFilter, isStandalone: false, selector: "p-columnFilter, p-column-filter, p-columnfilter", inputs: { field: "field", type: "type", display: "display", showMenu: ["showMenu", "showMenu", booleanAttribute], matchMode: "matchMode", operator: "operator", showOperator: ["showOperator", "showOperator", booleanAttribute], showClearButton: ["showClearButton", "showClearButton", booleanAttribute], showApplyButton: ["showApplyButton", "showApplyButton", booleanAttribute], showMatchModes: ["showMatchModes", "showMatchModes", booleanAttribute], showAddButton: ["showAddButton", "showAddButton", booleanAttribute], hideOnClear: ["hideOnClear", "hideOnClear", booleanAttribute], placeholder: "placeholder", matchModeOptions: "matchModeOptions", maxConstraints: ["maxConstraints", "maxConstraints", numberAttribute], minFractionDigits: ["minFractionDigits", "minFractionDigits", (value) => numberAttribute(value, undefined)], maxFractionDigits: ["maxFractionDigits", "maxFractionDigits", (value) => numberAttribute(value, undefined)], prefix: "prefix", suffix: "suffix", locale: "locale", localeMatcher: "localeMatcher", currency: "currency", currencyDisplay: "currencyDisplay", filterOn: "filterOn", useGrouping: ["useGrouping", "useGrouping", booleanAttribute], showButtons: ["showButtons", "showButtons", booleanAttribute], ariaLabel: "ariaLabel", filterButtonProps: "filterButtonProps" }, outputs: { onShow: "onShow", onHide: "onHide" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"] }, { propertyName: "filterTemplate", first: true, predicate: ["filter"] }, { propertyName: "footerTemplate", first: true, predicate: ["footer"] }, { propertyName: "filterIconTemplate", first: true, predicate: ["filtericon"] }, { propertyName: "removeRuleIconTemplate", first: true, predicate: ["removeruleicon"] }, { propertyName: "addRuleIconTemplate", first: true, predicate: ["addruleicon"] }, { propertyName: "clearFilterIconTemplate", first: true, predicate: ["clearfiltericon"] }, { propertyName: "_templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "icon", first: true, predicate: Button, descendants: true, read: ElementRef }, { propertyName: "clearButtonViewChild", first: true, predicate: ["clearBtn"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
6804
|
+
<div [class]="cx('filter')" [pBind]="ptm('filter')">
|
|
6783
6805
|
<p-columnFilterFormElement
|
|
6784
6806
|
*ngIf="display === 'row'"
|
|
6785
6807
|
class="p-fluid"
|
|
6786
6808
|
[type]="type"
|
|
6787
6809
|
[field]="field"
|
|
6788
6810
|
[ariaLabel]="ariaLabel"
|
|
6789
|
-
[filterConstraint]="
|
|
6811
|
+
[filterConstraint]="dataTable.filters[field]"
|
|
6790
6812
|
[filterTemplate]="filterTemplate || _filterTemplate"
|
|
6791
6813
|
[placeholder]="placeholder"
|
|
6792
6814
|
[minFractionDigits]="minFractionDigits"
|
|
@@ -6800,10 +6822,12 @@ class ColumnFilter extends BaseComponent {
|
|
|
6800
6822
|
[useGrouping]="useGrouping"
|
|
6801
6823
|
[showButtons]="showButtons"
|
|
6802
6824
|
[filterOn]="filterOn"
|
|
6825
|
+
[pt]="pt()"
|
|
6803
6826
|
></p-columnFilterFormElement>
|
|
6804
6827
|
<p-button
|
|
6805
6828
|
*ngIf="showMenuButton"
|
|
6806
6829
|
[styleClass]="cx('pcColumnFilterButton')"
|
|
6830
|
+
[pt]="ptm('pcColumnFilterButton')"
|
|
6807
6831
|
[attr.aria-haspopup]="true"
|
|
6808
6832
|
[ariaLabel]="filterMenuButtonAriaLabel"
|
|
6809
6833
|
[attr.aria-controls]="overlayVisible ? overlayId : null"
|
|
@@ -6814,9 +6838,9 @@ class ColumnFilter extends BaseComponent {
|
|
|
6814
6838
|
>
|
|
6815
6839
|
<ng-template #icon>
|
|
6816
6840
|
<ng-container>
|
|
6817
|
-
<svg data-p-icon="filter" *ngIf="!filterIconTemplate && !_filterIconTemplate && !hasFilter" />
|
|
6818
|
-
<svg data-p-icon="filter-fill" *ngIf="!filterIconTemplate && !_filterIconTemplate && hasFilter" />
|
|
6819
|
-
<span class="pi-filter-icon" *ngIf="filterIconTemplate || _filterIconTemplate">
|
|
6841
|
+
<svg data-p-icon="filter" *ngIf="!filterIconTemplate && !_filterIconTemplate && !hasFilter" [pBind]="ptm('pcColumnFilterButton')['icon']" />
|
|
6842
|
+
<svg data-p-icon="filter-fill" *ngIf="!filterIconTemplate && !_filterIconTemplate && hasFilter" [pBind]="ptm('pcColumnFilterButton')['icon']" />
|
|
6843
|
+
<span class="pi-filter-icon" *ngIf="filterIconTemplate || _filterIconTemplate" [pBind]="ptm('pcColumnFilterButton')['icon']">
|
|
6820
6844
|
<ng-template *ngTemplateOutlet="filterIconTemplate || _filterIconTemplate; context: { hasFilter: hasFilter }"></ng-template>
|
|
6821
6845
|
</span>
|
|
6822
6846
|
</ng-container>
|
|
@@ -6826,6 +6850,7 @@ class ColumnFilter extends BaseComponent {
|
|
|
6826
6850
|
<div
|
|
6827
6851
|
*ngIf="showMenu && overlayVisible"
|
|
6828
6852
|
[class]="cx('filterOverlay')"
|
|
6853
|
+
[pBind]="ptm('filterOverlay')"
|
|
6829
6854
|
[id]="overlayId"
|
|
6830
6855
|
[attr.aria-modal]="true"
|
|
6831
6856
|
role="dialog"
|
|
@@ -6836,35 +6861,37 @@ class ColumnFilter extends BaseComponent {
|
|
|
6836
6861
|
(keydown.escape)="onEscape()"
|
|
6837
6862
|
>
|
|
6838
6863
|
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate; context: { $implicit: field }"></ng-container>
|
|
6839
|
-
<ul *ngIf="display === 'row'; else menu" [class]="cx('filterConstraintList')">
|
|
6864
|
+
<ul *ngIf="display === 'row'; else menu" [class]="cx('filterConstraintList')" [pBind]="ptm('filterConstraintList')">
|
|
6840
6865
|
<li
|
|
6841
6866
|
*ngFor="let matchMode of matchModes; let i = index"
|
|
6842
6867
|
(click)="onRowMatchModeChange(matchMode.value)"
|
|
6843
6868
|
(keydown)="onRowMatchModeKeyDown($event)"
|
|
6844
6869
|
(keydown.enter)="onRowMatchModeChange(matchMode.value)"
|
|
6845
6870
|
[class]="cx('filterConstraint')"
|
|
6871
|
+
[pBind]="ptm('filterConstraint', ptmFilterConstraintOptions(matchMode))"
|
|
6846
6872
|
[class.p-datatable-filter-constraint-selected]="isRowMatchModeSelected(matchMode.value)"
|
|
6847
6873
|
[attr.tabindex]="i === 0 ? '0' : null"
|
|
6848
6874
|
>
|
|
6849
6875
|
{{ matchMode.label }}
|
|
6850
6876
|
</li>
|
|
6851
|
-
<li [class]="cx('filterConstraintSeparator')"></li>
|
|
6852
|
-
<li [class]="cx('filterConstraint')" (click)="onRowClearItemClick()" (keydown)="onRowMatchModeKeyDown($event)" (keydown.enter)="onRowClearItemClick()">
|
|
6877
|
+
<li [class]="cx('filterConstraintSeparator')" [pBind]="ptm('filterConstraintSeparator', { context: { index: i } })"></li>
|
|
6878
|
+
<li [class]="cx('filterConstraint')" [pBind]="ptm('emtpyFilterLabel')" (click)="onRowClearItemClick()" (keydown)="onRowMatchModeKeyDown($event)" (keydown.enter)="onRowClearItemClick()">
|
|
6853
6879
|
{{ noFilterLabel }}
|
|
6854
6880
|
</li>
|
|
6855
6881
|
</ul>
|
|
6856
6882
|
<ng-template #menu>
|
|
6857
|
-
<div [class]="cx('filterOperator')" *ngIf="isShowOperator">
|
|
6858
|
-
<p-select [options]="operatorOptions" [ngModel]="operator" (ngModelChange)="onOperatorChange($event)" [styleClass]="cx('pcFilterOperatorDropdown')"></p-select>
|
|
6883
|
+
<div [class]="cx('filterOperator')" [pBind]="ptm('filterOperator')" *ngIf="isShowOperator">
|
|
6884
|
+
<p-select [options]="operatorOptions" [pt]="ptm('pcFilterOperatorDropdown')" [ngModel]="operator" (ngModelChange)="onOperatorChange($event)" [styleClass]="cx('pcFilterOperatorDropdown')"></p-select>
|
|
6859
6885
|
</div>
|
|
6860
|
-
<div [class]="cx('filterRuleList')">
|
|
6861
|
-
<div *ngFor="let fieldConstraint of fieldConstraints; let i = index" [ngClass]="cx('filterRule')">
|
|
6886
|
+
<div [class]="cx('filterRuleList')" [pBind]="ptm('filterRuleList')">
|
|
6887
|
+
<div *ngFor="let fieldConstraint of fieldConstraints; let i = index" [ngClass]="cx('filterRule')" [pBind]="ptm('filterRule')">
|
|
6862
6888
|
<p-select
|
|
6863
6889
|
*ngIf="showMatchModes && matchModes"
|
|
6864
6890
|
[options]="matchModes"
|
|
6865
6891
|
[ngModel]="fieldConstraint.matchMode"
|
|
6866
6892
|
(ngModelChange)="onMenuMatchModeChange($event, fieldConstraint)"
|
|
6867
6893
|
[styleClass]="cx('pcFilterConstraintDropdown')"
|
|
6894
|
+
[pt]="ptm('pcFilterConstraintDropdown')"
|
|
6868
6895
|
></p-select>
|
|
6869
6896
|
<p-columnFilterFormElement
|
|
6870
6897
|
[type]="type"
|
|
@@ -6882,11 +6909,13 @@ class ColumnFilter extends BaseComponent {
|
|
|
6882
6909
|
[currencyDisplay]="currencyDisplay"
|
|
6883
6910
|
[useGrouping]="useGrouping"
|
|
6884
6911
|
[filterOn]="filterOn"
|
|
6912
|
+
[pt]="pt()"
|
|
6885
6913
|
></p-columnFilterFormElement>
|
|
6886
6914
|
<div>
|
|
6887
6915
|
<p-button
|
|
6888
6916
|
*ngIf="showRemoveIcon"
|
|
6889
6917
|
[styleClass]="cx('pcFilterRemoveRuleButton')"
|
|
6918
|
+
[pt]="ptm('pcFilterRemoveRuleButton')"
|
|
6890
6919
|
[text]="true"
|
|
6891
6920
|
severity="danger"
|
|
6892
6921
|
size="small"
|
|
@@ -6896,16 +6925,17 @@ class ColumnFilter extends BaseComponent {
|
|
|
6896
6925
|
[buttonProps]="filterButtonProps?.popover?.removeRule"
|
|
6897
6926
|
>
|
|
6898
6927
|
<ng-template #icon>
|
|
6899
|
-
<svg data-p-icon="trash" *ngIf="!removeRuleIconTemplate && !_removeRuleIconTemplate" />
|
|
6928
|
+
<svg data-p-icon="trash" *ngIf="!removeRuleIconTemplate && !_removeRuleIconTemplate" [pBind]="ptm('pcFilterRemoveRuleButton')['icon']" />
|
|
6900
6929
|
<ng-template *ngTemplateOutlet="removeRuleIconTemplate || _removeRuleIconTemplate"></ng-template>
|
|
6901
6930
|
</ng-template>
|
|
6902
6931
|
</p-button>
|
|
6903
6932
|
</div>
|
|
6904
6933
|
</div>
|
|
6905
6934
|
</div>
|
|
6906
|
-
|
|
6935
|
+
@if (isShowAddConstraint) {
|
|
6907
6936
|
<p-button
|
|
6908
6937
|
type="button"
|
|
6938
|
+
[pt]="ptm('pcAddRuleButtonLabel')"
|
|
6909
6939
|
[label]="addRuleButtonLabel"
|
|
6910
6940
|
[attr.aria-label]="addRuleButtonLabel"
|
|
6911
6941
|
[styleClass]="cx('pcFilterAddRuleButton')"
|
|
@@ -6915,35 +6945,44 @@ class ColumnFilter extends BaseComponent {
|
|
|
6915
6945
|
[buttonProps]="filterButtonProps?.popover?.addRule"
|
|
6916
6946
|
>
|
|
6917
6947
|
<ng-template #icon>
|
|
6918
|
-
<svg data-p-icon="plus" *ngIf="!addRuleIconTemplate && !_addRuleIconTemplate" />
|
|
6948
|
+
<svg data-p-icon="plus" *ngIf="!addRuleIconTemplate && !_addRuleIconTemplate" [pBind]="ptm('pcAddRuleButtonLabel')['icon']" />
|
|
6919
6949
|
<ng-template *ngTemplateOutlet="addRuleIconTemplate || _addRuleIconTemplate"></ng-template>
|
|
6920
6950
|
</ng-template>
|
|
6921
6951
|
</p-button>
|
|
6922
|
-
|
|
6923
|
-
<div [class]="cx('filterButtonbar')">
|
|
6924
|
-
<p-button
|
|
6925
|
-
|
|
6952
|
+
}
|
|
6953
|
+
<div [class]="cx('filterButtonbar')" [pBind]="ptm('filterButtonBar')">
|
|
6954
|
+
<p-button
|
|
6955
|
+
#clearBtn
|
|
6956
|
+
*ngIf="showClearButton"
|
|
6957
|
+
[outlined]="true"
|
|
6958
|
+
(onClick)="clearFilter()"
|
|
6959
|
+
[attr.aria-label]="clearButtonLabel"
|
|
6960
|
+
[label]="clearButtonLabel"
|
|
6961
|
+
[buttonProps]="filterButtonProps?.popover?.clear"
|
|
6962
|
+
[pt]="ptm('pcFilterClearButton')"
|
|
6963
|
+
/>
|
|
6964
|
+
<p-button *ngIf="showApplyButton" (onClick)="applyFilter()" size="small" [label]="applyButtonLabel" [attr.aria-label]="applyButtonLabel" [buttonProps]="filterButtonProps?.popover?.apply" [pt]="ptm('pcFilterApplyButton')" />
|
|
6926
6965
|
</div>
|
|
6927
6966
|
</ng-template>
|
|
6928
6967
|
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate; context: { $implicit: field }"></ng-container>
|
|
6929
6968
|
</div>
|
|
6930
6969
|
</div>
|
|
6931
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() =>
|
|
6970
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgForOf), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => i10.Select), selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: i0.forwardRef(() => i7.NgControlStatus), selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i0.forwardRef(() => i7.NgModel), selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i0.forwardRef(() => i11.Button), selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i0.forwardRef(() => FilterIcon), selector: "[data-p-icon=\"filter\"]" }, { kind: "component", type: i0.forwardRef(() => FilterFillIcon), selector: "[data-p-icon=\"filter-fill\"]" }, { kind: "component", type: i0.forwardRef(() => PlusIcon), selector: "[data-p-icon=\"plus\"]" }, { kind: "component", type: i0.forwardRef(() => TrashIcon), selector: "[data-p-icon=\"trash\"]" }, { kind: "directive", type: i0.forwardRef(() => i1.Bind), selector: "[pBind]", inputs: ["pBind"] }, { kind: "component", type: i0.forwardRef(() => ColumnFilterFormElement), selector: "p-columnFilterFormElement", inputs: ["field", "type", "filterConstraint", "filterTemplate", "placeholder", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "useGrouping", "ariaLabel", "filterOn"] }], animations: [trigger('overlayAnimation', [transition(':enter', [style$2({ opacity: 0, transform: 'scaleY(0.8)' }), animate('.12s cubic-bezier(0, 0, 0.2, 1)')]), transition(':leave', [animate('.1s linear', style$2({ opacity: 0 }))])])], encapsulation: i0.ViewEncapsulation.None });
|
|
6932
6971
|
}
|
|
6933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6972
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ColumnFilter, decorators: [{
|
|
6934
6973
|
type: Component,
|
|
6935
6974
|
args: [{
|
|
6936
6975
|
selector: 'p-columnFilter, p-column-filter, p-columnfilter',
|
|
6937
6976
|
standalone: false,
|
|
6938
6977
|
template: `
|
|
6939
|
-
<div [class]="cx('filter')">
|
|
6978
|
+
<div [class]="cx('filter')" [pBind]="ptm('filter')">
|
|
6940
6979
|
<p-columnFilterFormElement
|
|
6941
6980
|
*ngIf="display === 'row'"
|
|
6942
6981
|
class="p-fluid"
|
|
6943
6982
|
[type]="type"
|
|
6944
6983
|
[field]="field"
|
|
6945
6984
|
[ariaLabel]="ariaLabel"
|
|
6946
|
-
[filterConstraint]="
|
|
6985
|
+
[filterConstraint]="dataTable.filters[field]"
|
|
6947
6986
|
[filterTemplate]="filterTemplate || _filterTemplate"
|
|
6948
6987
|
[placeholder]="placeholder"
|
|
6949
6988
|
[minFractionDigits]="minFractionDigits"
|
|
@@ -6957,10 +6996,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
6957
6996
|
[useGrouping]="useGrouping"
|
|
6958
6997
|
[showButtons]="showButtons"
|
|
6959
6998
|
[filterOn]="filterOn"
|
|
6999
|
+
[pt]="pt()"
|
|
6960
7000
|
></p-columnFilterFormElement>
|
|
6961
7001
|
<p-button
|
|
6962
7002
|
*ngIf="showMenuButton"
|
|
6963
7003
|
[styleClass]="cx('pcColumnFilterButton')"
|
|
7004
|
+
[pt]="ptm('pcColumnFilterButton')"
|
|
6964
7005
|
[attr.aria-haspopup]="true"
|
|
6965
7006
|
[ariaLabel]="filterMenuButtonAriaLabel"
|
|
6966
7007
|
[attr.aria-controls]="overlayVisible ? overlayId : null"
|
|
@@ -6971,9 +7012,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
6971
7012
|
>
|
|
6972
7013
|
<ng-template #icon>
|
|
6973
7014
|
<ng-container>
|
|
6974
|
-
<svg data-p-icon="filter" *ngIf="!filterIconTemplate && !_filterIconTemplate && !hasFilter" />
|
|
6975
|
-
<svg data-p-icon="filter-fill" *ngIf="!filterIconTemplate && !_filterIconTemplate && hasFilter" />
|
|
6976
|
-
<span class="pi-filter-icon" *ngIf="filterIconTemplate || _filterIconTemplate">
|
|
7015
|
+
<svg data-p-icon="filter" *ngIf="!filterIconTemplate && !_filterIconTemplate && !hasFilter" [pBind]="ptm('pcColumnFilterButton')['icon']" />
|
|
7016
|
+
<svg data-p-icon="filter-fill" *ngIf="!filterIconTemplate && !_filterIconTemplate && hasFilter" [pBind]="ptm('pcColumnFilterButton')['icon']" />
|
|
7017
|
+
<span class="pi-filter-icon" *ngIf="filterIconTemplate || _filterIconTemplate" [pBind]="ptm('pcColumnFilterButton')['icon']">
|
|
6977
7018
|
<ng-template *ngTemplateOutlet="filterIconTemplate || _filterIconTemplate; context: { hasFilter: hasFilter }"></ng-template>
|
|
6978
7019
|
</span>
|
|
6979
7020
|
</ng-container>
|
|
@@ -6983,6 +7024,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
6983
7024
|
<div
|
|
6984
7025
|
*ngIf="showMenu && overlayVisible"
|
|
6985
7026
|
[class]="cx('filterOverlay')"
|
|
7027
|
+
[pBind]="ptm('filterOverlay')"
|
|
6986
7028
|
[id]="overlayId"
|
|
6987
7029
|
[attr.aria-modal]="true"
|
|
6988
7030
|
role="dialog"
|
|
@@ -6993,35 +7035,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
6993
7035
|
(keydown.escape)="onEscape()"
|
|
6994
7036
|
>
|
|
6995
7037
|
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate; context: { $implicit: field }"></ng-container>
|
|
6996
|
-
<ul *ngIf="display === 'row'; else menu" [class]="cx('filterConstraintList')">
|
|
7038
|
+
<ul *ngIf="display === 'row'; else menu" [class]="cx('filterConstraintList')" [pBind]="ptm('filterConstraintList')">
|
|
6997
7039
|
<li
|
|
6998
7040
|
*ngFor="let matchMode of matchModes; let i = index"
|
|
6999
7041
|
(click)="onRowMatchModeChange(matchMode.value)"
|
|
7000
7042
|
(keydown)="onRowMatchModeKeyDown($event)"
|
|
7001
7043
|
(keydown.enter)="onRowMatchModeChange(matchMode.value)"
|
|
7002
7044
|
[class]="cx('filterConstraint')"
|
|
7045
|
+
[pBind]="ptm('filterConstraint', ptmFilterConstraintOptions(matchMode))"
|
|
7003
7046
|
[class.p-datatable-filter-constraint-selected]="isRowMatchModeSelected(matchMode.value)"
|
|
7004
7047
|
[attr.tabindex]="i === 0 ? '0' : null"
|
|
7005
7048
|
>
|
|
7006
7049
|
{{ matchMode.label }}
|
|
7007
7050
|
</li>
|
|
7008
|
-
<li [class]="cx('filterConstraintSeparator')"></li>
|
|
7009
|
-
<li [class]="cx('filterConstraint')" (click)="onRowClearItemClick()" (keydown)="onRowMatchModeKeyDown($event)" (keydown.enter)="onRowClearItemClick()">
|
|
7051
|
+
<li [class]="cx('filterConstraintSeparator')" [pBind]="ptm('filterConstraintSeparator', { context: { index: i } })"></li>
|
|
7052
|
+
<li [class]="cx('filterConstraint')" [pBind]="ptm('emtpyFilterLabel')" (click)="onRowClearItemClick()" (keydown)="onRowMatchModeKeyDown($event)" (keydown.enter)="onRowClearItemClick()">
|
|
7010
7053
|
{{ noFilterLabel }}
|
|
7011
7054
|
</li>
|
|
7012
7055
|
</ul>
|
|
7013
7056
|
<ng-template #menu>
|
|
7014
|
-
<div [class]="cx('filterOperator')" *ngIf="isShowOperator">
|
|
7015
|
-
<p-select [options]="operatorOptions" [ngModel]="operator" (ngModelChange)="onOperatorChange($event)" [styleClass]="cx('pcFilterOperatorDropdown')"></p-select>
|
|
7057
|
+
<div [class]="cx('filterOperator')" [pBind]="ptm('filterOperator')" *ngIf="isShowOperator">
|
|
7058
|
+
<p-select [options]="operatorOptions" [pt]="ptm('pcFilterOperatorDropdown')" [ngModel]="operator" (ngModelChange)="onOperatorChange($event)" [styleClass]="cx('pcFilterOperatorDropdown')"></p-select>
|
|
7016
7059
|
</div>
|
|
7017
|
-
<div [class]="cx('filterRuleList')">
|
|
7018
|
-
<div *ngFor="let fieldConstraint of fieldConstraints; let i = index" [ngClass]="cx('filterRule')">
|
|
7060
|
+
<div [class]="cx('filterRuleList')" [pBind]="ptm('filterRuleList')">
|
|
7061
|
+
<div *ngFor="let fieldConstraint of fieldConstraints; let i = index" [ngClass]="cx('filterRule')" [pBind]="ptm('filterRule')">
|
|
7019
7062
|
<p-select
|
|
7020
7063
|
*ngIf="showMatchModes && matchModes"
|
|
7021
7064
|
[options]="matchModes"
|
|
7022
7065
|
[ngModel]="fieldConstraint.matchMode"
|
|
7023
7066
|
(ngModelChange)="onMenuMatchModeChange($event, fieldConstraint)"
|
|
7024
7067
|
[styleClass]="cx('pcFilterConstraintDropdown')"
|
|
7068
|
+
[pt]="ptm('pcFilterConstraintDropdown')"
|
|
7025
7069
|
></p-select>
|
|
7026
7070
|
<p-columnFilterFormElement
|
|
7027
7071
|
[type]="type"
|
|
@@ -7039,11 +7083,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
7039
7083
|
[currencyDisplay]="currencyDisplay"
|
|
7040
7084
|
[useGrouping]="useGrouping"
|
|
7041
7085
|
[filterOn]="filterOn"
|
|
7086
|
+
[pt]="pt()"
|
|
7042
7087
|
></p-columnFilterFormElement>
|
|
7043
7088
|
<div>
|
|
7044
7089
|
<p-button
|
|
7045
7090
|
*ngIf="showRemoveIcon"
|
|
7046
7091
|
[styleClass]="cx('pcFilterRemoveRuleButton')"
|
|
7092
|
+
[pt]="ptm('pcFilterRemoveRuleButton')"
|
|
7047
7093
|
[text]="true"
|
|
7048
7094
|
severity="danger"
|
|
7049
7095
|
size="small"
|
|
@@ -7053,16 +7099,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
7053
7099
|
[buttonProps]="filterButtonProps?.popover?.removeRule"
|
|
7054
7100
|
>
|
|
7055
7101
|
<ng-template #icon>
|
|
7056
|
-
<svg data-p-icon="trash" *ngIf="!removeRuleIconTemplate && !_removeRuleIconTemplate" />
|
|
7102
|
+
<svg data-p-icon="trash" *ngIf="!removeRuleIconTemplate && !_removeRuleIconTemplate" [pBind]="ptm('pcFilterRemoveRuleButton')['icon']" />
|
|
7057
7103
|
<ng-template *ngTemplateOutlet="removeRuleIconTemplate || _removeRuleIconTemplate"></ng-template>
|
|
7058
7104
|
</ng-template>
|
|
7059
7105
|
</p-button>
|
|
7060
7106
|
</div>
|
|
7061
7107
|
</div>
|
|
7062
7108
|
</div>
|
|
7063
|
-
|
|
7109
|
+
@if (isShowAddConstraint) {
|
|
7064
7110
|
<p-button
|
|
7065
7111
|
type="button"
|
|
7112
|
+
[pt]="ptm('pcAddRuleButtonLabel')"
|
|
7066
7113
|
[label]="addRuleButtonLabel"
|
|
7067
7114
|
[attr.aria-label]="addRuleButtonLabel"
|
|
7068
7115
|
[styleClass]="cx('pcFilterAddRuleButton')"
|
|
@@ -7072,22 +7119,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
7072
7119
|
[buttonProps]="filterButtonProps?.popover?.addRule"
|
|
7073
7120
|
>
|
|
7074
7121
|
<ng-template #icon>
|
|
7075
|
-
<svg data-p-icon="plus" *ngIf="!addRuleIconTemplate && !_addRuleIconTemplate" />
|
|
7122
|
+
<svg data-p-icon="plus" *ngIf="!addRuleIconTemplate && !_addRuleIconTemplate" [pBind]="ptm('pcAddRuleButtonLabel')['icon']" />
|
|
7076
7123
|
<ng-template *ngTemplateOutlet="addRuleIconTemplate || _addRuleIconTemplate"></ng-template>
|
|
7077
7124
|
</ng-template>
|
|
7078
7125
|
</p-button>
|
|
7079
|
-
|
|
7080
|
-
<div [class]="cx('filterButtonbar')">
|
|
7081
|
-
<p-button
|
|
7082
|
-
|
|
7126
|
+
}
|
|
7127
|
+
<div [class]="cx('filterButtonbar')" [pBind]="ptm('filterButtonBar')">
|
|
7128
|
+
<p-button
|
|
7129
|
+
#clearBtn
|
|
7130
|
+
*ngIf="showClearButton"
|
|
7131
|
+
[outlined]="true"
|
|
7132
|
+
(onClick)="clearFilter()"
|
|
7133
|
+
[attr.aria-label]="clearButtonLabel"
|
|
7134
|
+
[label]="clearButtonLabel"
|
|
7135
|
+
[buttonProps]="filterButtonProps?.popover?.clear"
|
|
7136
|
+
[pt]="ptm('pcFilterClearButton')"
|
|
7137
|
+
/>
|
|
7138
|
+
<p-button *ngIf="showApplyButton" (onClick)="applyFilter()" size="small" [label]="applyButtonLabel" [attr.aria-label]="applyButtonLabel" [buttonProps]="filterButtonProps?.popover?.apply" [pt]="ptm('pcFilterApplyButton')" />
|
|
7083
7139
|
</div>
|
|
7084
7140
|
</ng-template>
|
|
7085
7141
|
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate; context: { $implicit: field }"></ng-container>
|
|
7086
7142
|
</div>
|
|
7087
7143
|
</div>
|
|
7088
7144
|
`,
|
|
7089
|
-
animations: [trigger('overlayAnimation', [transition(':enter', [style$
|
|
7090
|
-
encapsulation: ViewEncapsulation.None
|
|
7145
|
+
animations: [trigger('overlayAnimation', [transition(':enter', [style$2({ opacity: 0, transform: 'scaleY(0.8)' }), animate('.12s cubic-bezier(0, 0, 0.2, 1)')]), transition(':leave', [animate('.1s linear', style$2({ opacity: 0 }))])])],
|
|
7146
|
+
encapsulation: ViewEncapsulation.None,
|
|
7147
|
+
hostDirectives: [Bind]
|
|
7091
7148
|
}]
|
|
7092
7149
|
}], propDecorators: { field: [{
|
|
7093
7150
|
type: Input
|
|
@@ -7192,9 +7249,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
7192
7249
|
type: ContentChild,
|
|
7193
7250
|
args: ['clearfiltericon', { descendants: false }]
|
|
7194
7251
|
}] } });
|
|
7195
|
-
class ColumnFilterFormElement {
|
|
7196
|
-
|
|
7252
|
+
class ColumnFilterFormElement extends BaseComponent {
|
|
7253
|
+
dataTable;
|
|
7197
7254
|
colFilter;
|
|
7255
|
+
hostName = 'Table';
|
|
7256
|
+
bindDirectiveInstance = inject(Bind, { self: true });
|
|
7257
|
+
onAfterViewChecked() {
|
|
7258
|
+
this.bindDirectiveInstance.setAttrs(this.ptm('columnFilterFormElement'));
|
|
7259
|
+
}
|
|
7198
7260
|
field;
|
|
7199
7261
|
type;
|
|
7200
7262
|
filterConstraint;
|
|
@@ -7215,34 +7277,35 @@ class ColumnFilterFormElement {
|
|
|
7215
7277
|
return this.colFilter.showButtons;
|
|
7216
7278
|
}
|
|
7217
7279
|
filterCallback;
|
|
7218
|
-
constructor(
|
|
7219
|
-
|
|
7280
|
+
constructor(dataTable, colFilter) {
|
|
7281
|
+
super();
|
|
7282
|
+
this.dataTable = dataTable;
|
|
7220
7283
|
this.colFilter = colFilter;
|
|
7221
7284
|
}
|
|
7222
|
-
|
|
7285
|
+
onInit() {
|
|
7223
7286
|
this.filterCallback = (value) => {
|
|
7224
7287
|
this.filterConstraint.value = value;
|
|
7225
|
-
this.
|
|
7288
|
+
this.dataTable._filter();
|
|
7226
7289
|
};
|
|
7227
7290
|
}
|
|
7228
7291
|
onModelChange(value) {
|
|
7229
7292
|
this.filterConstraint.value = value;
|
|
7230
7293
|
if (this.type === 'date' || this.type === 'boolean' || ((this.type === 'text' || this.type === 'numeric') && this.filterOn === 'input') || !value) {
|
|
7231
|
-
this.
|
|
7294
|
+
this.dataTable._filter();
|
|
7232
7295
|
}
|
|
7233
7296
|
}
|
|
7234
7297
|
onTextInputEnterKeyDown(event) {
|
|
7235
|
-
this.
|
|
7298
|
+
this.dataTable._filter();
|
|
7236
7299
|
event.preventDefault();
|
|
7237
7300
|
}
|
|
7238
7301
|
onNumericInputKeyDown(event) {
|
|
7239
7302
|
if (event.key === 'Enter') {
|
|
7240
|
-
this.
|
|
7303
|
+
this.dataTable._filter();
|
|
7241
7304
|
event.preventDefault();
|
|
7242
7305
|
}
|
|
7243
7306
|
}
|
|
7244
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7245
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.
|
|
7307
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ColumnFilterFormElement, deps: [{ token: Table }, { token: ColumnFilter }], target: i0.ɵɵFactoryTarget.Component });
|
|
7308
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.4", type: ColumnFilterFormElement, isStandalone: false, selector: "p-columnFilterFormElement", inputs: { field: "field", type: "type", filterConstraint: "filterConstraint", filterTemplate: "filterTemplate", placeholder: "placeholder", minFractionDigits: ["minFractionDigits", "minFractionDigits", (value) => numberAttribute(value, undefined)], maxFractionDigits: ["maxFractionDigits", "maxFractionDigits", (value) => numberAttribute(value, undefined)], prefix: "prefix", suffix: "suffix", locale: "locale", localeMatcher: "localeMatcher", currency: "currency", currencyDisplay: "currencyDisplay", useGrouping: ["useGrouping", "useGrouping", booleanAttribute], ariaLabel: "ariaLabel", filterOn: "filterOn" }, usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
7246
7309
|
<ng-container *ngIf="filterTemplate; else builtInElement">
|
|
7247
7310
|
<ng-container
|
|
7248
7311
|
*ngTemplateOutlet="
|
|
@@ -7275,6 +7338,7 @@ class ColumnFilterFormElement {
|
|
|
7275
7338
|
type="text"
|
|
7276
7339
|
[ariaLabel]="ariaLabel"
|
|
7277
7340
|
pInputText
|
|
7341
|
+
[pt]="ptm('pcFilterInputText')"
|
|
7278
7342
|
[value]="filterConstraint?.value"
|
|
7279
7343
|
(input)="onModelChange($event.target.value)"
|
|
7280
7344
|
(keydown.enter)="onTextInputEnterKeyDown($event)"
|
|
@@ -7298,15 +7362,16 @@ class ColumnFilterFormElement {
|
|
|
7298
7362
|
[currency]="currency"
|
|
7299
7363
|
[currencyDisplay]="currencyDisplay"
|
|
7300
7364
|
[useGrouping]="useGrouping"
|
|
7365
|
+
[pt]="ptm('pcFilterInputNumber')"
|
|
7301
7366
|
></p-inputNumber>
|
|
7302
|
-
<p-checkbox [indeterminate]="filterConstraint?.value === null" [binary]="true" *ngSwitchCase="'boolean'" [ngModel]="filterConstraint?.value" (ngModelChange)="onModelChange($event)" />
|
|
7367
|
+
<p-checkbox [pt]="ptm('pcFilterCheckbox')" [indeterminate]="filterConstraint?.value === null" [binary]="true" *ngSwitchCase="'boolean'" [ngModel]="filterConstraint?.value" (ngModelChange)="onModelChange($event)" />
|
|
7303
7368
|
|
|
7304
|
-
<p-datepicker [ariaLabel]="ariaLabel" *ngSwitchCase="'date'" [placeholder]="placeholder" [ngModel]="filterConstraint?.value" (ngModelChange)="onModelChange($event)" appendTo="body"></p-datepicker>
|
|
7369
|
+
<p-datepicker [pt]="ptm('pcFilterDatePicker')" [ariaLabel]="ariaLabel" *ngSwitchCase="'date'" [placeholder]="placeholder" [ngModel]="filterConstraint?.value" (ngModelChange)="onModelChange($event)" appendTo="body"></p-datepicker>
|
|
7305
7370
|
</ng-container>
|
|
7306
7371
|
</ng-template>
|
|
7307
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
7372
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i12.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pSize", "variant", "fluid", "invalid"] }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i13.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "component", type: i14.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "autocomplete", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "component", type: i9.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
7308
7373
|
}
|
|
7309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ColumnFilterFormElement, decorators: [{
|
|
7310
7375
|
type: Component,
|
|
7311
7376
|
args: [{
|
|
7312
7377
|
selector: 'p-columnFilterFormElement',
|
|
@@ -7344,6 +7409,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
7344
7409
|
type="text"
|
|
7345
7410
|
[ariaLabel]="ariaLabel"
|
|
7346
7411
|
pInputText
|
|
7412
|
+
[pt]="ptm('pcFilterInputText')"
|
|
7347
7413
|
[value]="filterConstraint?.value"
|
|
7348
7414
|
(input)="onModelChange($event.target.value)"
|
|
7349
7415
|
(keydown.enter)="onTextInputEnterKeyDown($event)"
|
|
@@ -7367,14 +7433,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
7367
7433
|
[currency]="currency"
|
|
7368
7434
|
[currencyDisplay]="currencyDisplay"
|
|
7369
7435
|
[useGrouping]="useGrouping"
|
|
7436
|
+
[pt]="ptm('pcFilterInputNumber')"
|
|
7370
7437
|
></p-inputNumber>
|
|
7371
|
-
<p-checkbox [indeterminate]="filterConstraint?.value === null" [binary]="true" *ngSwitchCase="'boolean'" [ngModel]="filterConstraint?.value" (ngModelChange)="onModelChange($event)" />
|
|
7438
|
+
<p-checkbox [pt]="ptm('pcFilterCheckbox')" [indeterminate]="filterConstraint?.value === null" [binary]="true" *ngSwitchCase="'boolean'" [ngModel]="filterConstraint?.value" (ngModelChange)="onModelChange($event)" />
|
|
7372
7439
|
|
|
7373
|
-
<p-datepicker [ariaLabel]="ariaLabel" *ngSwitchCase="'date'" [placeholder]="placeholder" [ngModel]="filterConstraint?.value" (ngModelChange)="onModelChange($event)" appendTo="body"></p-datepicker>
|
|
7440
|
+
<p-datepicker [pt]="ptm('pcFilterDatePicker')" [ariaLabel]="ariaLabel" *ngSwitchCase="'date'" [placeholder]="placeholder" [ngModel]="filterConstraint?.value" (ngModelChange)="onModelChange($event)" appendTo="body"></p-datepicker>
|
|
7374
7441
|
</ng-container>
|
|
7375
7442
|
</ng-template>
|
|
7376
7443
|
`,
|
|
7377
|
-
encapsulation: ViewEncapsulation.None
|
|
7444
|
+
encapsulation: ViewEncapsulation.None,
|
|
7445
|
+
hostDirectives: [Bind]
|
|
7378
7446
|
}]
|
|
7379
7447
|
}], ctorParameters: () => [{ type: Table }, { type: ColumnFilter }], propDecorators: { field: [{
|
|
7380
7448
|
type: Input
|
|
@@ -7413,8 +7481,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
7413
7481
|
type: Input
|
|
7414
7482
|
}] } });
|
|
7415
7483
|
class TableModule {
|
|
7416
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7417
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
7484
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7485
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.4", ngImport: i0, type: TableModule, declarations: [Table, SortableColumn, FrozenColumn, RowGroupHeader, SelectableRow, RowToggler, ContextMenuRow, ResizableColumn, ReorderableColumn, EditableColumn, CellEditor, TableBody, SortIcon, TableRadioButton, TableCheckbox, TableHeaderCheckbox, ReorderableRowHandle, ReorderableRow, SelectableRowDblClick, EditableRow, InitEditableRow, SaveEditableRow, CancelEditableRow, ColumnFilter, ColumnFilterFormElement], imports: [CommonModule,
|
|
7418
7486
|
PaginatorModule,
|
|
7419
7487
|
InputTextModule,
|
|
7420
7488
|
SelectModule,
|
|
@@ -7437,8 +7505,9 @@ class TableModule {
|
|
|
7437
7505
|
FilterSlashIcon,
|
|
7438
7506
|
PlusIcon,
|
|
7439
7507
|
TrashIcon,
|
|
7440
|
-
RadioButtonModule
|
|
7441
|
-
|
|
7508
|
+
RadioButtonModule,
|
|
7509
|
+
BindModule], exports: [Table, SharedModule, SortableColumn, FrozenColumn, RowGroupHeader, SelectableRow, RowToggler, ContextMenuRow, ResizableColumn, ReorderableColumn, EditableColumn, CellEditor, SortIcon, TableRadioButton, TableCheckbox, TableHeaderCheckbox, ReorderableRowHandle, ReorderableRow, SelectableRowDblClick, EditableRow, InitEditableRow, SaveEditableRow, CancelEditableRow, ColumnFilter, ColumnFilterFormElement, ScrollerModule] });
|
|
7510
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableModule, providers: [TableStyle], imports: [CommonModule,
|
|
7442
7511
|
PaginatorModule,
|
|
7443
7512
|
InputTextModule,
|
|
7444
7513
|
SelectModule,
|
|
@@ -7461,10 +7530,11 @@ class TableModule {
|
|
|
7461
7530
|
FilterSlashIcon,
|
|
7462
7531
|
PlusIcon,
|
|
7463
7532
|
TrashIcon,
|
|
7464
|
-
RadioButtonModule,
|
|
7533
|
+
RadioButtonModule,
|
|
7534
|
+
BindModule, SharedModule,
|
|
7465
7535
|
ScrollerModule] });
|
|
7466
7536
|
}
|
|
7467
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TableModule, decorators: [{
|
|
7468
7538
|
type: NgModule,
|
|
7469
7539
|
args: [{
|
|
7470
7540
|
imports: [
|
|
@@ -7491,7 +7561,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
7491
7561
|
FilterSlashIcon,
|
|
7492
7562
|
PlusIcon,
|
|
7493
7563
|
TrashIcon,
|
|
7494
|
-
RadioButtonModule
|
|
7564
|
+
RadioButtonModule,
|
|
7565
|
+
BindModule
|
|
7495
7566
|
],
|
|
7496
7567
|
exports: [
|
|
7497
7568
|
Table,
|