@exhaustive-ui/core 3.0.0-alpha.0 → 22.0.0-alpha.0
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/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +10 -17
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +786 -928
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
- package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +561 -599
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +227 -394
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +255 -266
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +585 -653
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +1792 -1787
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +480 -577
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +774 -745
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
- package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +68 -102
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
- package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +591 -728
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +324 -375
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +945 -1045
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +861 -879
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
- package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +837 -986
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
- package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +2435 -2721
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
- package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +604 -690
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +333 -423
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/package.json +11 -11
- package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
- package/schematics/migrations/renamed-inputs/migration.js +97 -0
- package/schematics/migrations/styleclass-to-class/migration.js +92 -1
- package/schematics/migrations.json +11 -6
- package/schematics/utils/removed-inputs.js +0 -0
- package/schematics/utils/renamed-inputs.js +175 -0
- package/schematics/utils/styleclass.js +24 -8
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-accordion.d.ts +8 -24
- package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
- package/types/exhaustive-ui-core-api.d.ts +2 -3
- package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
- package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
- package/types/exhaustive-ui-core-avatar.d.ts +18 -25
- package/types/exhaustive-ui-core-badge.d.ts +13 -27
- package/types/exhaustive-ui-core-blockui.d.ts +18 -30
- package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
- package/types/exhaustive-ui-core-button.d.ts +57 -89
- package/types/exhaustive-ui-core-carousel.d.ts +56 -82
- package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
- package/types/exhaustive-ui-core-chart.d.ts +21 -29
- package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
- package/types/exhaustive-ui-core-chip.d.ts +31 -38
- package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
- package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
- package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
- package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
- package/types/exhaustive-ui-core-dataview.d.ts +42 -65
- package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
- package/types/exhaustive-ui-core-dialog.d.ts +73 -123
- package/types/exhaustive-ui-core-dock.d.ts +16 -25
- package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
- package/types/exhaustive-ui-core-drawer.d.ts +32 -64
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
- package/types/exhaustive-ui-core-editor.d.ts +15 -25
- package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
- package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
- package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
- package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
- package/types/exhaustive-ui-core-galleria.d.ts +124 -194
- package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
- package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
- package/types/exhaustive-ui-core-image.d.ts +35 -68
- package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
- package/types/exhaustive-ui-core-inplace.d.ts +30 -42
- package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
- package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
- package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
- package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
- package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
- package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
- package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
- package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
- package/types/exhaustive-ui-core-knob.d.ts +45 -60
- package/types/exhaustive-ui-core-listbox.d.ts +90 -126
- package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
- package/types/exhaustive-ui-core-menu.d.ts +33 -53
- package/types/exhaustive-ui-core-menubar.d.ts +38 -85
- package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
- package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
- package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
- package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
- package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
- package/types/exhaustive-ui-core-paginator.d.ts +41 -69
- package/types/exhaustive-ui-core-panel.d.ts +18 -45
- package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
- package/types/exhaustive-ui-core-password.d.ts +56 -93
- package/types/exhaustive-ui-core-picklist.d.ts +107 -121
- package/types/exhaustive-ui-core-popover.d.ts +23 -47
- package/types/exhaustive-ui-core-rating.d.ts +18 -26
- package/types/exhaustive-ui-core-scroller.d.ts +90 -120
- package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
- package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
- package/types/exhaustive-ui-core-select.d.ts +137 -188
- package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
- package/types/exhaustive-ui-core-slider.d.ts +52 -67
- package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
- package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
- package/types/exhaustive-ui-core-splitter.d.ts +47 -59
- package/types/exhaustive-ui-core-steps.d.ts +24 -31
- package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
- package/types/exhaustive-ui-core-table.d.ts +349 -453
- package/types/exhaustive-ui-core-terminal.d.ts +10 -22
- package/types/exhaustive-ui-core-textarea.d.ts +7 -10
- package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
- package/types/exhaustive-ui-core-timeline.d.ts +20 -28
- package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
- package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
- package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
- package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
- package/types/exhaustive-ui-core-tree.d.ts +82 -119
- package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
- package/types/exhaustive-ui-core-treetable.d.ts +203 -280
- package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
|
@@ -2,7 +2,7 @@ export * from '@exhaustive-ui/core/types/dialog';
|
|
|
2
2
|
import * as i2 from '@angular/common';
|
|
3
3
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable, InjectionToken, inject,
|
|
5
|
+
import { Injectable, InjectionToken, input, inject, afterEveryRender, booleanAttribute, numberAttribute, computed, model, output, viewChild, contentChild, linkedSignal, signal, NgZone, contentChildren, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
6
|
import { uuid, setAttribute, addStyle, getOuterWidth, getOuterHeight, getViewport, appendChild, removeClass, hasClass } from '@exhaustive-ui/utils';
|
|
7
7
|
import { TranslationKeys, OverlayService, PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
|
|
8
8
|
import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
|
|
@@ -27,17 +27,17 @@ const inlineStyles = {
|
|
|
27
27
|
left: 0,
|
|
28
28
|
top: 0,
|
|
29
29
|
display: 'flex',
|
|
30
|
-
justifyContent: instance.position === 'left' || instance.position === 'topleft' || instance.position === 'bottomleft'
|
|
30
|
+
justifyContent: instance.position() === 'left' || instance.position() === 'topleft' || instance.position() === 'bottomleft'
|
|
31
31
|
? 'flex-start'
|
|
32
|
-
: instance.position === 'right' || instance.position === 'topright' || instance.position === 'bottomright'
|
|
32
|
+
: instance.position() === 'right' || instance.position() === 'topright' || instance.position() === 'bottomright'
|
|
33
33
|
? 'flex-end'
|
|
34
34
|
: 'center',
|
|
35
|
-
alignItems: instance.position === 'top' || instance.position === 'topleft' || instance.position === 'topright'
|
|
35
|
+
alignItems: instance.position() === 'top' || instance.position() === 'topleft' || instance.position() === 'topright'
|
|
36
36
|
? 'flex-start'
|
|
37
|
-
: instance.position === 'bottom' || instance.position === 'bottomleft' || instance.position === 'bottomright'
|
|
37
|
+
: instance.position() === 'bottom' || instance.position() === 'bottomleft' || instance.position() === 'bottomright'
|
|
38
38
|
? 'flex-end'
|
|
39
39
|
: 'center',
|
|
40
|
-
pointerEvents: instance.modal ? 'auto' : 'none'
|
|
40
|
+
pointerEvents: instance.modal() ? 'auto' : 'none'
|
|
41
41
|
}),
|
|
42
42
|
root: {
|
|
43
43
|
display: 'flex',
|
|
@@ -48,13 +48,13 @@ const inlineStyles = {
|
|
|
48
48
|
const classes = {
|
|
49
49
|
mask: ({ instance }) => {
|
|
50
50
|
const positions = ['left', 'right', 'top', 'topleft', 'topright', 'bottom', 'bottomleft', 'bottomright'];
|
|
51
|
-
const pos = positions.find((item) => item === instance.position);
|
|
52
|
-
return ['p-dialog-mask', { 'p-overlay-mask': instance.modal }, pos ? `p-dialog-${pos}` : ''];
|
|
51
|
+
const pos = positions.find((item) => item === instance.position());
|
|
52
|
+
return ['p-dialog-mask', { 'p-overlay-mask': instance.modal() }, pos ? `p-dialog-${pos}` : ''];
|
|
53
53
|
},
|
|
54
54
|
root: ({ instance }) => [
|
|
55
55
|
'p-dialog p-component',
|
|
56
56
|
{
|
|
57
|
-
'p-dialog-maximized': instance.maximizable && instance.maximized
|
|
57
|
+
'p-dialog-maximized': instance.maximizable() && instance.maximized()
|
|
58
58
|
}
|
|
59
59
|
],
|
|
60
60
|
header: 'p-dialog-header',
|
|
@@ -133,11 +133,13 @@ const DIALOG_INSTANCE = new InjectionToken('DIALOG_INSTANCE');
|
|
|
133
133
|
*/
|
|
134
134
|
class Dialog extends BaseComponent {
|
|
135
135
|
componentName = 'Dialog';
|
|
136
|
-
hostName = ''
|
|
136
|
+
hostName = input('', /* @ts-ignore */
|
|
137
|
+
...(ngDevMode ? [{ debugName: "hostName" }] : /* istanbul ignore next */ []));
|
|
137
138
|
$pcDialog = inject(DIALOG_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
138
139
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
139
|
-
|
|
140
|
-
|
|
140
|
+
constructor() {
|
|
141
|
+
super();
|
|
142
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('host')));
|
|
141
143
|
}
|
|
142
144
|
/**
|
|
143
145
|
* Title text of the dialog.
|
|
@@ -149,123 +151,118 @@ class Dialog extends BaseComponent {
|
|
|
149
151
|
* Enables dragging to change the position using header.
|
|
150
152
|
* @group Props
|
|
151
153
|
*/
|
|
152
|
-
draggable = true;
|
|
154
|
+
draggable = input(true, { ...(ngDevMode ? { debugName: "draggable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
153
155
|
/**
|
|
154
156
|
* Enables resizing of the content.
|
|
155
157
|
* @group Props
|
|
156
158
|
*/
|
|
157
|
-
resizable = true;
|
|
159
|
+
resizable = input(true, { ...(ngDevMode ? { debugName: "resizable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
158
160
|
/**
|
|
159
161
|
* Style of the content section.
|
|
160
162
|
* @group Props
|
|
161
163
|
*/
|
|
162
|
-
contentStyle
|
|
164
|
+
contentStyle = input(/* @ts-ignore */
|
|
165
|
+
...(ngDevMode ? [undefined, { debugName: "contentStyle" }] : /* istanbul ignore next */ []));
|
|
163
166
|
/**
|
|
164
167
|
* Style class of the content.
|
|
165
168
|
* @group Props
|
|
166
169
|
*/
|
|
167
|
-
contentStyleClass
|
|
170
|
+
contentStyleClass = input(undefined, /* @ts-ignore */
|
|
171
|
+
...(ngDevMode ? [{ debugName: "contentStyleClass" }] : /* istanbul ignore next */ []));
|
|
168
172
|
/**
|
|
169
173
|
* Defines if background should be blocked when dialog is displayed.
|
|
170
174
|
* @group Props
|
|
171
175
|
*/
|
|
172
|
-
modal = false;
|
|
176
|
+
modal = input(false, { ...(ngDevMode ? { debugName: "modal" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
173
177
|
/**
|
|
174
178
|
* Specifies if pressing escape key should hide the dialog.
|
|
175
179
|
* @group Props
|
|
176
180
|
*/
|
|
177
|
-
closeOnEscape = true;
|
|
181
|
+
closeOnEscape = input(true, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
178
182
|
/**
|
|
179
183
|
* Specifies if clicking the modal background should hide the dialog.
|
|
180
184
|
* @group Props
|
|
181
185
|
*/
|
|
182
|
-
dismissableMask = false;
|
|
183
|
-
/**
|
|
184
|
-
* When enabled dialog is displayed in RTL direction.
|
|
185
|
-
* @group Props
|
|
186
|
-
*/
|
|
187
|
-
rtl = false;
|
|
186
|
+
dismissableMask = input(false, { ...(ngDevMode ? { debugName: "dismissableMask" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
188
187
|
/**
|
|
189
188
|
* Adds a close icon to the header to hide the dialog.
|
|
190
189
|
* @group Props
|
|
191
190
|
*/
|
|
192
|
-
closable = true;
|
|
191
|
+
closable = input(true, { ...(ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
193
192
|
/**
|
|
194
193
|
* Object literal to define widths per screen size.
|
|
195
194
|
* @group Props
|
|
196
195
|
*/
|
|
197
|
-
breakpoints
|
|
196
|
+
breakpoints = input(/* @ts-ignore */
|
|
197
|
+
...(ngDevMode ? [undefined, { debugName: "breakpoints" }] : /* istanbul ignore next */ []));
|
|
198
198
|
/**
|
|
199
199
|
* Style class of the component.
|
|
200
200
|
* @group Props
|
|
201
201
|
*/
|
|
202
|
-
styleClass
|
|
202
|
+
styleClass = input(undefined, /* @ts-ignore */
|
|
203
|
+
...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
203
204
|
/**
|
|
204
205
|
* Style class of the mask.
|
|
205
206
|
* @group Props
|
|
206
207
|
*/
|
|
207
|
-
maskStyleClass
|
|
208
|
+
maskStyleClass = input(undefined, /* @ts-ignore */
|
|
209
|
+
...(ngDevMode ? [{ debugName: "maskStyleClass" }] : /* istanbul ignore next */ []));
|
|
208
210
|
/**
|
|
209
211
|
* Style of the mask.
|
|
210
212
|
* @group Props
|
|
211
213
|
*/
|
|
212
|
-
maskStyle
|
|
214
|
+
maskStyle = input(undefined, /* @ts-ignore */
|
|
215
|
+
...(ngDevMode ? [{ debugName: "maskStyle" }] : /* istanbul ignore next */ []));
|
|
213
216
|
/**
|
|
214
217
|
* Whether to show the header or not.
|
|
215
218
|
* @group Props
|
|
216
219
|
*/
|
|
217
|
-
showHeader = true;
|
|
220
|
+
showHeader = input(true, { ...(ngDevMode ? { debugName: "showHeader" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
218
221
|
/**
|
|
219
222
|
* Whether background scroll should be blocked when dialog is visible.
|
|
220
223
|
* @group Props
|
|
221
224
|
*/
|
|
222
|
-
blockScroll = false;
|
|
225
|
+
blockScroll = input(false, { ...(ngDevMode ? { debugName: "blockScroll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
223
226
|
/**
|
|
224
227
|
* Whether to automatically manage layering.
|
|
225
228
|
* @group Props
|
|
226
229
|
*/
|
|
227
|
-
autoZIndex = true;
|
|
230
|
+
autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
228
231
|
/**
|
|
229
232
|
* Base zIndex value to use in layering.
|
|
230
233
|
* @group Props
|
|
231
234
|
*/
|
|
232
|
-
baseZIndex = 0;
|
|
235
|
+
baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
233
236
|
/**
|
|
234
237
|
* Minimum value for the left coordinate of dialog in dragging.
|
|
235
238
|
* @group Props
|
|
236
239
|
*/
|
|
237
|
-
minX = 0;
|
|
240
|
+
minX = input(0, { ...(ngDevMode ? { debugName: "minX" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
238
241
|
/**
|
|
239
242
|
* Minimum value for the top coordinate of dialog in dragging.
|
|
240
243
|
* @group Props
|
|
241
244
|
*/
|
|
242
|
-
minY = 0;
|
|
245
|
+
minY = input(0, { ...(ngDevMode ? { debugName: "minY" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
243
246
|
/**
|
|
244
247
|
* When enabled, first focusable element receives focus on show.
|
|
245
248
|
* @group Props
|
|
246
249
|
*/
|
|
247
|
-
focusOnShow = true;
|
|
250
|
+
focusOnShow = input(true, { ...(ngDevMode ? { debugName: "focusOnShow" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
248
251
|
/**
|
|
249
252
|
* Whether the dialog can be displayed full screen.
|
|
250
253
|
* @group Props
|
|
251
254
|
*/
|
|
252
|
-
maximizable = false;
|
|
255
|
+
maximizable = input(false, { ...(ngDevMode ? { debugName: "maximizable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
253
256
|
/**
|
|
254
257
|
* Keeps dialog in the viewport.
|
|
255
258
|
* @group Props
|
|
256
259
|
*/
|
|
257
|
-
keepInViewport = true;
|
|
260
|
+
keepInViewport = input(true, { ...(ngDevMode ? { debugName: "keepInViewport" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
258
261
|
/**
|
|
259
262
|
* When enabled, can only focus on elements inside the dialog.
|
|
260
263
|
* @group Props
|
|
261
264
|
*/
|
|
262
|
-
focusTrap = true;
|
|
263
|
-
/**
|
|
264
|
-
* Transition options of the animation.
|
|
265
|
-
* @deprecated since v21.0.0. Use `motionOptions` instead.
|
|
266
|
-
* @group Props
|
|
267
|
-
*/
|
|
268
|
-
transitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';
|
|
265
|
+
focusTrap = input(true, { ...(ngDevMode ? { debugName: "focusTrap" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
269
266
|
/**
|
|
270
267
|
* The motion options for the mask.
|
|
271
268
|
* @group Props
|
|
@@ -296,83 +293,78 @@ class Dialog extends BaseComponent {
|
|
|
296
293
|
* Name of the close icon.
|
|
297
294
|
* @group Props
|
|
298
295
|
*/
|
|
299
|
-
closeIcon
|
|
296
|
+
closeIcon = input(undefined, /* @ts-ignore */
|
|
297
|
+
...(ngDevMode ? [{ debugName: "closeIcon" }] : /* istanbul ignore next */ []));
|
|
300
298
|
/**
|
|
301
299
|
* Defines a string that labels the close button for accessibility.
|
|
302
300
|
* @group Props
|
|
303
301
|
*/
|
|
304
|
-
closeAriaLabel
|
|
302
|
+
closeAriaLabel = input(undefined, /* @ts-ignore */
|
|
303
|
+
...(ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []));
|
|
305
304
|
/**
|
|
306
305
|
* Index of the close button in tabbing order.
|
|
307
306
|
* @group Props
|
|
308
307
|
*/
|
|
309
|
-
closeTabindex = '0'
|
|
308
|
+
closeTabindex = input('0', /* @ts-ignore */
|
|
309
|
+
...(ngDevMode ? [{ debugName: "closeTabindex" }] : /* istanbul ignore next */ []));
|
|
310
310
|
/**
|
|
311
311
|
* Name of the minimize icon.
|
|
312
312
|
* @group Props
|
|
313
313
|
*/
|
|
314
|
-
minimizeIcon
|
|
314
|
+
minimizeIcon = input(undefined, /* @ts-ignore */
|
|
315
|
+
...(ngDevMode ? [{ debugName: "minimizeIcon" }] : /* istanbul ignore next */ []));
|
|
315
316
|
/**
|
|
316
317
|
* Name of the maximize icon.
|
|
317
318
|
* @group Props
|
|
318
319
|
*/
|
|
319
|
-
maximizeIcon
|
|
320
|
+
maximizeIcon = input(undefined, /* @ts-ignore */
|
|
321
|
+
...(ngDevMode ? [{ debugName: "maximizeIcon" }] : /* istanbul ignore next */ []));
|
|
320
322
|
/**
|
|
321
323
|
* Used to pass all properties of the ButtonProps to the Button component.
|
|
322
324
|
* @group Props
|
|
323
325
|
*/
|
|
324
|
-
closeButtonProps = {
|
|
326
|
+
closeButtonProps = input({
|
|
325
327
|
severity: 'secondary',
|
|
326
328
|
variant: 'text',
|
|
327
329
|
rounded: true
|
|
328
|
-
}
|
|
330
|
+
}, /* @ts-ignore */
|
|
331
|
+
...(ngDevMode ? [{ debugName: "closeButtonProps" }] : /* istanbul ignore next */ []));
|
|
329
332
|
/**
|
|
330
333
|
* Used to pass all properties of the ButtonProps to the Button component.
|
|
331
334
|
* @group Props
|
|
332
335
|
*/
|
|
333
|
-
maximizeButtonProps = {
|
|
336
|
+
maximizeButtonProps = input({
|
|
334
337
|
severity: 'secondary',
|
|
335
338
|
variant: 'text',
|
|
336
339
|
rounded: true
|
|
337
|
-
}
|
|
340
|
+
}, /* @ts-ignore */
|
|
341
|
+
...(ngDevMode ? [{ debugName: "maximizeButtonProps" }] : /* istanbul ignore next */ []));
|
|
338
342
|
/**
|
|
339
343
|
* Specifies the visibility of the dialog.
|
|
344
|
+
* Emits `visibleChange` with the new value to notify changes in the visibility state of the component.
|
|
345
|
+
* @defaultValue false
|
|
340
346
|
* @group Props
|
|
341
347
|
*/
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
}
|
|
345
|
-
set visible(value) {
|
|
346
|
-
this._visible = value;
|
|
347
|
-
if (this._visible && !this.maskVisible) {
|
|
348
|
-
this.maskVisible = true;
|
|
349
|
-
this.renderMask.set(true);
|
|
350
|
-
this.renderDialog.set(true);
|
|
351
|
-
}
|
|
352
|
-
}
|
|
348
|
+
visible = model(false, /* @ts-ignore */
|
|
349
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
353
350
|
/**
|
|
354
351
|
* Inline style of the component.
|
|
355
352
|
* @group Props
|
|
356
353
|
*/
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
}
|
|
360
|
-
set style(value) {
|
|
361
|
-
if (value) {
|
|
362
|
-
this._style = { ...value };
|
|
363
|
-
this.originalStyle = value;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
354
|
+
style = input(/* @ts-ignore */
|
|
355
|
+
...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
|
|
366
356
|
/**
|
|
367
357
|
* Position of the dialog.
|
|
368
358
|
* @group Props
|
|
369
359
|
*/
|
|
370
|
-
position
|
|
360
|
+
position = input(/* @ts-ignore */
|
|
361
|
+
...(ngDevMode ? [undefined, { debugName: "position" }] : /* istanbul ignore next */ []));
|
|
371
362
|
/**
|
|
372
363
|
* Role attribute of html element.
|
|
373
364
|
* @group Emits
|
|
374
365
|
*/
|
|
375
|
-
role = 'dialog'
|
|
366
|
+
role = input('dialog', /* @ts-ignore */
|
|
367
|
+
...(ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []));
|
|
376
368
|
/**
|
|
377
369
|
* Identifier of the element that labels the dialog. Defaults to the id of the generated header title.
|
|
378
370
|
* @group Props
|
|
@@ -396,12 +388,6 @@ class Dialog extends BaseComponent {
|
|
|
396
388
|
* @group Emits
|
|
397
389
|
*/
|
|
398
390
|
onHide = output();
|
|
399
|
-
/**
|
|
400
|
-
* This EventEmitter is used to notify changes in the visibility state of a component.
|
|
401
|
-
* @param {boolean} value - New value.
|
|
402
|
-
* @group Emits
|
|
403
|
-
*/
|
|
404
|
-
visibleChange = output();
|
|
405
391
|
/**
|
|
406
392
|
* Callback to invoke when dialog resizing is initiated.
|
|
407
393
|
* @param {MouseEvent} event - Mouse event.
|
|
@@ -435,37 +421,43 @@ class Dialog extends BaseComponent {
|
|
|
435
421
|
* Header template.
|
|
436
422
|
* @group Templates
|
|
437
423
|
*/
|
|
438
|
-
headerTemplate;
|
|
424
|
+
headerTemplate = input(undefined, { ...(ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {}), alias: 'content' });
|
|
439
425
|
/**
|
|
440
426
|
* Content template.
|
|
441
427
|
* @group Templates
|
|
442
428
|
*/
|
|
443
|
-
contentTemplate
|
|
429
|
+
contentTemplate = input(undefined, /* @ts-ignore */
|
|
430
|
+
...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
|
|
444
431
|
/**
|
|
445
432
|
* Footer template.
|
|
446
433
|
* @group Templates
|
|
447
434
|
*/
|
|
448
|
-
footerTemplate
|
|
435
|
+
footerTemplate = input(undefined, /* @ts-ignore */
|
|
436
|
+
...(ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []));
|
|
449
437
|
/**
|
|
450
438
|
* Close icon template.
|
|
451
439
|
* @group Templates
|
|
452
440
|
*/
|
|
453
|
-
closeIconTemplate
|
|
441
|
+
closeIconTemplate = input(undefined, /* @ts-ignore */
|
|
442
|
+
...(ngDevMode ? [{ debugName: "closeIconTemplate" }] : /* istanbul ignore next */ []));
|
|
454
443
|
/**
|
|
455
444
|
* Maximize icon template.
|
|
456
445
|
* @group Templates
|
|
457
446
|
*/
|
|
458
|
-
maximizeIconTemplate
|
|
447
|
+
maximizeIconTemplate = input(undefined, /* @ts-ignore */
|
|
448
|
+
...(ngDevMode ? [{ debugName: "maximizeIconTemplate" }] : /* istanbul ignore next */ []));
|
|
459
449
|
/**
|
|
460
450
|
* Minimize icon template.
|
|
461
451
|
* @group Templates
|
|
462
452
|
*/
|
|
463
|
-
minimizeIconTemplate
|
|
453
|
+
minimizeIconTemplate = input(undefined, /* @ts-ignore */
|
|
454
|
+
...(ngDevMode ? [{ debugName: "minimizeIconTemplate" }] : /* istanbul ignore next */ []));
|
|
464
455
|
/**
|
|
465
456
|
* Headless template.
|
|
466
457
|
* @group Templates
|
|
467
458
|
*/
|
|
468
|
-
headlessTemplate
|
|
459
|
+
headlessTemplate = input(undefined, /* @ts-ignore */
|
|
460
|
+
...(ngDevMode ? [{ debugName: "headlessTemplate" }] : /* istanbul ignore next */ []));
|
|
469
461
|
/**
|
|
470
462
|
* Custom header template.
|
|
471
463
|
* @group Templates
|
|
@@ -503,51 +495,80 @@ class Dialog extends BaseComponent {
|
|
|
503
495
|
_headlessTemplate = contentChild('headless', { ...(ngDevMode ? { debugName: "_headlessTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
504
496
|
$appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
|
|
505
497
|
...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
|
|
506
|
-
renderMask =
|
|
507
|
-
|
|
508
|
-
renderDialog =
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
498
|
+
renderMask = linkedSignal({ ...(ngDevMode ? { debugName: "renderMask" } : /* istanbul ignore next */ {}), source: this.visible,
|
|
499
|
+
computation: (visible, previous) => visible || (previous?.value ?? false) });
|
|
500
|
+
renderDialog = linkedSignal({ ...(ngDevMode ? { debugName: "renderDialog" } : /* istanbul ignore next */ {}), source: this.visible,
|
|
501
|
+
computation: (visible, previous) => visible || (previous?.value ?? false) });
|
|
502
|
+
maskVisible = linkedSignal({ ...(ngDevMode ? { debugName: "maskVisible" } : /* istanbul ignore next */ {}), source: this.visible,
|
|
503
|
+
computation: (visible, previous) => visible || previous?.value });
|
|
512
504
|
container = signal(null, /* @ts-ignore */
|
|
513
505
|
...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
|
|
514
|
-
wrapper
|
|
515
|
-
|
|
506
|
+
wrapper = signal(undefined, /* @ts-ignore */
|
|
507
|
+
...(ngDevMode ? [{ debugName: "wrapper" }] : /* istanbul ignore next */ []));
|
|
508
|
+
dragging = signal(undefined, /* @ts-ignore */
|
|
509
|
+
...(ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []));
|
|
516
510
|
headerId = computed(() => (this.header() !== null ? this.id + '_header' : null), /* @ts-ignore */
|
|
517
511
|
...(ngDevMode ? [{ debugName: "headerId" }] : /* istanbul ignore next */ []));
|
|
518
512
|
computedAriaLabelledBy = computed(() => this.ariaLabelledBy() ?? this.headerId(), /* @ts-ignore */
|
|
519
513
|
...(ngDevMode ? [{ debugName: "computedAriaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
520
|
-
documentDragListener
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
514
|
+
documentDragListener = signal(undefined, /* @ts-ignore */
|
|
515
|
+
...(ngDevMode ? [{ debugName: "documentDragListener" }] : /* istanbul ignore next */ []));
|
|
516
|
+
documentDragEndListener = signal(undefined, /* @ts-ignore */
|
|
517
|
+
...(ngDevMode ? [{ debugName: "documentDragEndListener" }] : /* istanbul ignore next */ []));
|
|
518
|
+
resizing = signal(undefined, /* @ts-ignore */
|
|
519
|
+
...(ngDevMode ? [{ debugName: "resizing" }] : /* istanbul ignore next */ []));
|
|
520
|
+
documentResizeListener = signal(undefined, /* @ts-ignore */
|
|
521
|
+
...(ngDevMode ? [{ debugName: "documentResizeListener" }] : /* istanbul ignore next */ []));
|
|
522
|
+
documentResizeEndListener = signal(undefined, /* @ts-ignore */
|
|
523
|
+
...(ngDevMode ? [{ debugName: "documentResizeEndListener" }] : /* istanbul ignore next */ []));
|
|
524
|
+
documentEscapeListener = signal(undefined, /* @ts-ignore */
|
|
525
|
+
...(ngDevMode ? [{ debugName: "documentEscapeListener" }] : /* istanbul ignore next */ []));
|
|
526
|
+
maskClickListener = signal(undefined, /* @ts-ignore */
|
|
527
|
+
...(ngDevMode ? [{ debugName: "maskClickListener" }] : /* istanbul ignore next */ []));
|
|
528
|
+
lastPageX = signal(undefined, /* @ts-ignore */
|
|
529
|
+
...(ngDevMode ? [{ debugName: "lastPageX" }] : /* istanbul ignore next */ []));
|
|
530
|
+
lastPageY = signal(undefined, /* @ts-ignore */
|
|
531
|
+
...(ngDevMode ? [{ debugName: "lastPageY" }] : /* istanbul ignore next */ []));
|
|
532
|
+
maximized = signal(undefined, /* @ts-ignore */
|
|
533
|
+
...(ngDevMode ? [{ debugName: "maximized" }] : /* istanbul ignore next */ []));
|
|
536
534
|
id = uuid('pn_id_');
|
|
537
|
-
_style = {}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
535
|
+
_style = linkedSignal({ ...(ngDevMode ? { debugName: "_style" } : /* istanbul ignore next */ {}), source: this.style,
|
|
536
|
+
computation: (style, previous) => (style ? { ...style } : (previous?.value ?? {})) });
|
|
537
|
+
originalStyle = linkedSignal({ ...(ngDevMode ? { debugName: "originalStyle" } : /* istanbul ignore next */ {}), source: this.style,
|
|
538
|
+
computation: (style, previous) => (style ? style : previous?.value) });
|
|
539
|
+
styleElement = signal(undefined, /* @ts-ignore */
|
|
540
|
+
...(ngDevMode ? [{ debugName: "styleElement" }] : /* istanbul ignore next */ []));
|
|
542
541
|
_componentStyle = inject(DialogStyle);
|
|
543
|
-
headerT
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
542
|
+
headerT = computed(() => this.templates()
|
|
543
|
+
.filter((item) => item.getType() === 'header')
|
|
544
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
545
|
+
...(ngDevMode ? [{ debugName: "headerT" }] : /* istanbul ignore next */ []));
|
|
546
|
+
contentT = computed(() => this.templates()
|
|
547
|
+
.filter((item) => !['header', 'footer', 'closeicon', 'maximizeicon', 'minimizeicon', 'headless'].includes(item.getType()))
|
|
548
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
549
|
+
...(ngDevMode ? [{ debugName: "contentT" }] : /* istanbul ignore next */ []));
|
|
550
|
+
footerT = computed(() => this.templates()
|
|
551
|
+
.filter((item) => item.getType() === 'footer')
|
|
552
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
553
|
+
...(ngDevMode ? [{ debugName: "footerT" }] : /* istanbul ignore next */ []));
|
|
554
|
+
closeIconT = computed(() => this.templates()
|
|
555
|
+
.filter((item) => item.getType() === 'closeicon')
|
|
556
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
557
|
+
...(ngDevMode ? [{ debugName: "closeIconT" }] : /* istanbul ignore next */ []));
|
|
558
|
+
maximizeIconT = computed(() => this.templates()
|
|
559
|
+
.filter((item) => item.getType() === 'maximizeicon')
|
|
560
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
561
|
+
...(ngDevMode ? [{ debugName: "maximizeIconT" }] : /* istanbul ignore next */ []));
|
|
562
|
+
minimizeIconT = computed(() => this.templates()
|
|
563
|
+
.filter((item) => item.getType() === 'minimizeicon')
|
|
564
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
565
|
+
...(ngDevMode ? [{ debugName: "minimizeIconT" }] : /* istanbul ignore next */ []));
|
|
566
|
+
headlessT = computed(() => this.templates()
|
|
567
|
+
.filter((item) => item.getType() === 'headless')
|
|
568
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
569
|
+
...(ngDevMode ? [{ debugName: "headlessT" }] : /* istanbul ignore next */ []));
|
|
570
|
+
zIndexForLayering = signal(undefined, /* @ts-ignore */
|
|
571
|
+
...(ngDevMode ? [{ debugName: "zIndexForLayering" }] : /* istanbul ignore next */ []));
|
|
551
572
|
get maximizeLabel() {
|
|
552
573
|
return this.config.getTranslation(TranslationKeys.ARIA)['maximizeLabel'];
|
|
553
574
|
}
|
|
@@ -556,78 +577,19 @@ class Dialog extends BaseComponent {
|
|
|
556
577
|
}
|
|
557
578
|
zone = inject(NgZone);
|
|
558
579
|
overlayService = inject(OverlayService);
|
|
559
|
-
get maskClass() {
|
|
560
|
-
const positions = ['left', 'right', 'top', 'topleft', 'topright', 'bottom', 'bottomleft', 'bottomright'];
|
|
561
|
-
const pos = positions.find((item) => item === this.position);
|
|
562
|
-
return {
|
|
563
|
-
'p-dialog-mask': true,
|
|
564
|
-
'p-overlay-mask': this.modal || this.dismissableMask,
|
|
565
|
-
[`p-dialog-${pos}`]: pos
|
|
566
|
-
};
|
|
567
|
-
}
|
|
568
580
|
onInit() {
|
|
569
|
-
if (this.breakpoints) {
|
|
581
|
+
if (this.breakpoints()) {
|
|
570
582
|
this.createStyle();
|
|
571
583
|
}
|
|
572
584
|
}
|
|
573
585
|
templates = contentChildren(PrimeTemplate, /* @ts-ignore */
|
|
574
586
|
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
575
|
-
onAfterContentInit() {
|
|
576
|
-
this.templates()?.forEach((item) => {
|
|
577
|
-
switch (item.getType()) {
|
|
578
|
-
case 'header':
|
|
579
|
-
this.headerT = item.template;
|
|
580
|
-
break;
|
|
581
|
-
case 'content':
|
|
582
|
-
this.contentT = item.template;
|
|
583
|
-
break;
|
|
584
|
-
case 'footer':
|
|
585
|
-
this.footerT = item.template;
|
|
586
|
-
break;
|
|
587
|
-
case 'closeicon':
|
|
588
|
-
this.closeIconT = item.template;
|
|
589
|
-
break;
|
|
590
|
-
case 'maximizeicon':
|
|
591
|
-
this.maximizeIconT = item.template;
|
|
592
|
-
break;
|
|
593
|
-
case 'minimizeicon':
|
|
594
|
-
this.minimizeIconT = item.template;
|
|
595
|
-
break;
|
|
596
|
-
case 'headless':
|
|
597
|
-
this.headlessT = item.template;
|
|
598
|
-
break;
|
|
599
|
-
default:
|
|
600
|
-
this.contentT = item.template;
|
|
601
|
-
break;
|
|
602
|
-
}
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
parseDurationToMilliseconds(durationString) {
|
|
606
|
-
const transitionTimeRegex = /([\d\.]+)(ms|s)\b/g;
|
|
607
|
-
let totalMilliseconds = 0;
|
|
608
|
-
let match;
|
|
609
|
-
while ((match = transitionTimeRegex.exec(durationString)) !== null) {
|
|
610
|
-
const value = parseFloat(match[1]);
|
|
611
|
-
const unit = match[2];
|
|
612
|
-
if (unit === 'ms') {
|
|
613
|
-
totalMilliseconds += value;
|
|
614
|
-
}
|
|
615
|
-
else if (unit === 's') {
|
|
616
|
-
totalMilliseconds += value * 1000;
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
if (totalMilliseconds === 0) {
|
|
620
|
-
return undefined;
|
|
621
|
-
}
|
|
622
|
-
return totalMilliseconds;
|
|
623
|
-
}
|
|
624
587
|
_focus(focusParentElement) {
|
|
625
588
|
if (focusParentElement) {
|
|
626
|
-
const timeoutDuration = this.parseDurationToMilliseconds(this.transitionOptions);
|
|
627
589
|
let _focusableElements = DomHandler.getFocusableElements(focusParentElement);
|
|
628
590
|
if (_focusableElements && _focusableElements.length > 0) {
|
|
629
591
|
this.zone.runOutsideAngular(() => {
|
|
630
|
-
setTimeout(() => _focusableElements[0].focus(),
|
|
592
|
+
setTimeout(() => _focusableElements[0].focus(), 5);
|
|
631
593
|
});
|
|
632
594
|
return true;
|
|
633
595
|
}
|
|
@@ -647,83 +609,83 @@ class Dialog extends BaseComponent {
|
|
|
647
609
|
}
|
|
648
610
|
}
|
|
649
611
|
close(event) {
|
|
650
|
-
this.visible
|
|
651
|
-
this.visibleChange.emit(this.visible);
|
|
612
|
+
this.visible.set(false);
|
|
652
613
|
event.preventDefault();
|
|
653
614
|
}
|
|
654
615
|
enableModality() {
|
|
655
|
-
if (this.closable && this.dismissableMask) {
|
|
656
|
-
this.maskClickListener
|
|
657
|
-
|
|
616
|
+
if (this.closable() && this.dismissableMask()) {
|
|
617
|
+
this.maskClickListener.set(this.renderer.listen(this.wrapper(), 'mousedown', (event) => {
|
|
618
|
+
const wrapper = this.wrapper();
|
|
619
|
+
if (wrapper && wrapper.isSameNode(event.target)) {
|
|
658
620
|
this.close(event);
|
|
659
621
|
}
|
|
660
|
-
});
|
|
622
|
+
}));
|
|
661
623
|
}
|
|
662
|
-
if (this.modal) {
|
|
624
|
+
if (this.modal()) {
|
|
663
625
|
blockBodyScroll();
|
|
664
626
|
}
|
|
665
627
|
}
|
|
666
628
|
disableModality() {
|
|
667
|
-
if (this.wrapper) {
|
|
668
|
-
if (this.dismissableMask) {
|
|
629
|
+
if (this.wrapper()) {
|
|
630
|
+
if (this.dismissableMask()) {
|
|
669
631
|
this.unbindMaskClickListener();
|
|
670
632
|
}
|
|
671
633
|
// for nested dialogs w/modal
|
|
672
634
|
const scrollBlockers = document.querySelectorAll('[data-p-scrollblocker-active="true"]');
|
|
673
|
-
if (this.modal && scrollBlockers && scrollBlockers.length == 1) {
|
|
635
|
+
if (this.modal() && scrollBlockers && scrollBlockers.length == 1) {
|
|
674
636
|
unblockBodyScroll();
|
|
675
637
|
}
|
|
676
|
-
if (!this.cd.destroyed) {
|
|
677
|
-
this.cd.detectChanges();
|
|
678
|
-
}
|
|
679
638
|
}
|
|
680
639
|
}
|
|
681
640
|
maximize() {
|
|
682
|
-
this.maximized
|
|
683
|
-
if (!this.modal && !this.blockScroll) {
|
|
684
|
-
if (this.maximized) {
|
|
641
|
+
this.maximized.update((maximized) => !maximized);
|
|
642
|
+
if (!this.modal() && !this.blockScroll()) {
|
|
643
|
+
if (this.maximized()) {
|
|
685
644
|
blockBodyScroll();
|
|
686
645
|
}
|
|
687
646
|
else {
|
|
688
647
|
unblockBodyScroll();
|
|
689
648
|
}
|
|
690
649
|
}
|
|
691
|
-
this.onMaximize.emit({ maximized: this.maximized });
|
|
650
|
+
this.onMaximize.emit({ maximized: this.maximized() });
|
|
692
651
|
}
|
|
693
652
|
unbindMaskClickListener() {
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
653
|
+
const maskClickListener = this.maskClickListener();
|
|
654
|
+
if (maskClickListener) {
|
|
655
|
+
maskClickListener();
|
|
656
|
+
this.maskClickListener.set(null);
|
|
697
657
|
}
|
|
698
658
|
}
|
|
699
659
|
moveOnTop() {
|
|
700
|
-
if (this.autoZIndex) {
|
|
701
|
-
ZIndexUtils.set('modal', this.container(), this.baseZIndex + this.config.zIndex.modal);
|
|
702
|
-
this.wrapper.style.zIndex = String(parseInt(this.container().style.zIndex, 10) - 1);
|
|
660
|
+
if (this.autoZIndex()) {
|
|
661
|
+
ZIndexUtils.set('modal', this.container(), this.baseZIndex() + this.config.zIndex.modal);
|
|
662
|
+
this.wrapper().style.zIndex = String(parseInt(this.container().style.zIndex, 10) - 1);
|
|
703
663
|
}
|
|
704
664
|
else {
|
|
705
|
-
this.zIndexForLayering
|
|
665
|
+
this.zIndexForLayering.set(ZIndexUtils.generateZIndex('modal', (this.baseZIndex() ?? 0) + this.config.zIndex.modal));
|
|
706
666
|
}
|
|
707
667
|
}
|
|
708
668
|
createStyle() {
|
|
709
669
|
if (isPlatformBrowser(this.platformId)) {
|
|
710
|
-
if (!this.styleElement && !this.$unstyled()) {
|
|
711
|
-
|
|
712
|
-
this.styleElement.
|
|
713
|
-
|
|
714
|
-
|
|
670
|
+
if (!this.styleElement() && !this.$unstyled()) {
|
|
671
|
+
const styleElement = this.renderer.createElement('style');
|
|
672
|
+
this.styleElement.set(styleElement);
|
|
673
|
+
styleElement.type = 'text/css';
|
|
674
|
+
setAttribute(styleElement, 'nonce', this.config?.csp()?.nonce);
|
|
675
|
+
this.renderer.appendChild(this.document.head, styleElement);
|
|
676
|
+
const breakpoints = this.breakpoints();
|
|
715
677
|
let innerHTML = '';
|
|
716
|
-
for (let breakpoint in
|
|
678
|
+
for (let breakpoint in breakpoints) {
|
|
717
679
|
innerHTML += `
|
|
718
680
|
@media screen and (max-width: ${breakpoint}) {
|
|
719
681
|
.p-dialog[${this.id}]:not(.p-dialog-maximized) {
|
|
720
|
-
width: ${
|
|
682
|
+
width: ${breakpoints[breakpoint]} !important;
|
|
721
683
|
}
|
|
722
684
|
}
|
|
723
685
|
`;
|
|
724
686
|
}
|
|
725
|
-
this.renderer.setProperty(
|
|
726
|
-
setAttribute(
|
|
687
|
+
this.renderer.setProperty(styleElement, 'innerHTML', innerHTML);
|
|
688
|
+
setAttribute(styleElement, 'nonce', this.config?.csp()?.nonce);
|
|
727
689
|
}
|
|
728
690
|
}
|
|
729
691
|
}
|
|
@@ -733,21 +695,21 @@ class Dialog extends BaseComponent {
|
|
|
733
695
|
if (closestDiv?.getAttribute('data-pc-section') === 'headeractions') {
|
|
734
696
|
return;
|
|
735
697
|
}
|
|
736
|
-
if (this.draggable) {
|
|
737
|
-
this.dragging
|
|
738
|
-
this.lastPageX
|
|
739
|
-
this.lastPageY
|
|
698
|
+
if (this.draggable()) {
|
|
699
|
+
this.dragging.set(true);
|
|
700
|
+
this.lastPageX.set(event.pageX);
|
|
701
|
+
this.lastPageY.set(event.pageY);
|
|
740
702
|
this.container().style.margin = '0';
|
|
741
703
|
this.document.body.setAttribute('data-p-unselectable-text', 'true');
|
|
742
704
|
!this.$unstyled() && addStyle(this.document.body, { 'user-select': 'none' });
|
|
743
705
|
}
|
|
744
706
|
}
|
|
745
707
|
onDrag(event) {
|
|
746
|
-
if (this.dragging && this.container()) {
|
|
708
|
+
if (this.dragging() && this.container()) {
|
|
747
709
|
const containerWidth = getOuterWidth(this.container());
|
|
748
710
|
const containerHeight = getOuterHeight(this.container());
|
|
749
|
-
const deltaX = event.pageX - this.lastPageX;
|
|
750
|
-
const deltaY = event.pageY - this.lastPageY;
|
|
711
|
+
const deltaX = event.pageX - this.lastPageX();
|
|
712
|
+
const deltaY = event.pageY - this.lastPageY();
|
|
751
713
|
const offset = this.container().getBoundingClientRect();
|
|
752
714
|
const containerComputedStyle = getComputedStyle(this.container());
|
|
753
715
|
const leftMargin = parseFloat(containerComputedStyle.marginLeft);
|
|
@@ -756,33 +718,32 @@ class Dialog extends BaseComponent {
|
|
|
756
718
|
const topPos = offset.top + deltaY - topMargin;
|
|
757
719
|
const viewport = getViewport();
|
|
758
720
|
this.container().style.position = 'fixed';
|
|
759
|
-
if (this.keepInViewport) {
|
|
760
|
-
if (leftPos >= this.minX && leftPos + containerWidth < viewport.width) {
|
|
761
|
-
this._style.left = `${leftPos}px`;
|
|
762
|
-
this.lastPageX
|
|
721
|
+
if (this.keepInViewport()) {
|
|
722
|
+
if (leftPos >= this.minX() && leftPos + containerWidth < viewport.width) {
|
|
723
|
+
this._style().left = `${leftPos}px`;
|
|
724
|
+
this.lastPageX.set(event.pageX);
|
|
763
725
|
this.container().style.left = `${leftPos}px`;
|
|
764
726
|
}
|
|
765
|
-
if (topPos >= this.minY && topPos + containerHeight < viewport.height) {
|
|
766
|
-
this._style.top = `${topPos}px`;
|
|
767
|
-
this.lastPageY
|
|
727
|
+
if (topPos >= this.minY() && topPos + containerHeight < viewport.height) {
|
|
728
|
+
this._style().top = `${topPos}px`;
|
|
729
|
+
this.lastPageY.set(event.pageY);
|
|
768
730
|
this.container().style.top = `${topPos}px`;
|
|
769
731
|
}
|
|
770
732
|
}
|
|
771
733
|
else {
|
|
772
|
-
this.lastPageX
|
|
734
|
+
this.lastPageX.set(event.pageX);
|
|
773
735
|
this.container().style.left = `${leftPos}px`;
|
|
774
|
-
this.lastPageY
|
|
736
|
+
this.lastPageY.set(event.pageY);
|
|
775
737
|
this.container().style.top = `${topPos}px`;
|
|
776
738
|
}
|
|
777
739
|
this.overlayService.emitParentDrag(this.container());
|
|
778
740
|
}
|
|
779
741
|
}
|
|
780
742
|
endDrag(event) {
|
|
781
|
-
if (this.dragging) {
|
|
782
|
-
this.dragging
|
|
743
|
+
if (this.dragging()) {
|
|
744
|
+
this.dragging.set(false);
|
|
783
745
|
this.document.body.removeAttribute('data-p-unselectable-text');
|
|
784
746
|
!this.$unstyled() && (this.document.body.style['user-select'] = '');
|
|
785
|
-
this.cd.detectChanges();
|
|
786
747
|
this.onDragEnd.emit(event);
|
|
787
748
|
}
|
|
788
749
|
}
|
|
@@ -797,19 +758,19 @@ class Dialog extends BaseComponent {
|
|
|
797
758
|
this.resetPosition();
|
|
798
759
|
}
|
|
799
760
|
initResize(event) {
|
|
800
|
-
if (this.resizable) {
|
|
801
|
-
this.resizing
|
|
802
|
-
this.lastPageX
|
|
803
|
-
this.lastPageY
|
|
761
|
+
if (this.resizable()) {
|
|
762
|
+
this.resizing.set(true);
|
|
763
|
+
this.lastPageX.set(event.pageX);
|
|
764
|
+
this.lastPageY.set(event.pageY);
|
|
804
765
|
this.document.body.setAttribute('data-p-unselectable-text', 'true');
|
|
805
766
|
!this.$unstyled() && addStyle(this.document.body, { 'user-select': 'none' });
|
|
806
767
|
this.onResizeInit.emit(event);
|
|
807
768
|
}
|
|
808
769
|
}
|
|
809
770
|
onResize(event) {
|
|
810
|
-
if (this.resizing) {
|
|
811
|
-
let deltaX = event.pageX - this.lastPageX;
|
|
812
|
-
let deltaY = event.pageY - this.lastPageY;
|
|
771
|
+
if (this.resizing()) {
|
|
772
|
+
let deltaX = event.pageX - this.lastPageX();
|
|
773
|
+
let deltaY = event.pageY - this.lastPageY();
|
|
813
774
|
let containerWidth = getOuterWidth(this.container());
|
|
814
775
|
let containerHeight = getOuterHeight(this.container());
|
|
815
776
|
const contentViewChild = this.contentViewChild();
|
|
@@ -821,42 +782,43 @@ class Dialog extends BaseComponent {
|
|
|
821
782
|
let offset = this.container().getBoundingClientRect();
|
|
822
783
|
let viewport = getViewport();
|
|
823
784
|
let hasBeenDragged = !parseInt(this.container().style.top) || !parseInt(this.container().style.left);
|
|
785
|
+
const style = this._style();
|
|
824
786
|
if (hasBeenDragged) {
|
|
825
787
|
newWidth += deltaX;
|
|
826
788
|
newHeight += deltaY;
|
|
827
789
|
}
|
|
828
790
|
if ((!minWidth || newWidth > parseInt(minWidth)) && offset.left + newWidth < viewport.width) {
|
|
829
|
-
|
|
830
|
-
this.container().style.width =
|
|
791
|
+
style.width = newWidth + 'px';
|
|
792
|
+
this.container().style.width = style.width;
|
|
831
793
|
}
|
|
832
794
|
if ((!minHeight || newHeight > parseInt(minHeight)) && offset.top + newHeight < viewport.height) {
|
|
833
795
|
contentViewChild.nativeElement.style.height = contentHeight + newHeight - containerHeight + 'px';
|
|
834
|
-
if (
|
|
835
|
-
|
|
836
|
-
this.container().style.height =
|
|
796
|
+
if (style.height) {
|
|
797
|
+
style.height = newHeight + 'px';
|
|
798
|
+
this.container().style.height = style.height;
|
|
837
799
|
}
|
|
838
800
|
}
|
|
839
|
-
this.lastPageX
|
|
840
|
-
this.lastPageY
|
|
801
|
+
this.lastPageX.set(event.pageX);
|
|
802
|
+
this.lastPageY.set(event.pageY);
|
|
841
803
|
}
|
|
842
804
|
}
|
|
843
805
|
resizeEnd(event) {
|
|
844
|
-
if (this.resizing) {
|
|
845
|
-
this.resizing
|
|
806
|
+
if (this.resizing()) {
|
|
807
|
+
this.resizing.set(false);
|
|
846
808
|
this.document.body.removeAttribute('data-p-unselectable-text');
|
|
847
809
|
!this.$unstyled() && (this.document.body.style['user-select'] = '');
|
|
848
810
|
this.onResizeEnd.emit(event);
|
|
849
811
|
}
|
|
850
812
|
}
|
|
851
813
|
bindGlobalListeners() {
|
|
852
|
-
if (this.draggable) {
|
|
814
|
+
if (this.draggable()) {
|
|
853
815
|
this.bindDocumentDragListener();
|
|
854
816
|
this.bindDocumentDragEndListener();
|
|
855
817
|
}
|
|
856
|
-
if (this.resizable) {
|
|
818
|
+
if (this.resizable()) {
|
|
857
819
|
this.bindDocumentResizeListeners();
|
|
858
820
|
}
|
|
859
|
-
if (this.closeOnEscape && this.closable) {
|
|
821
|
+
if (this.closeOnEscape() && this.closable()) {
|
|
860
822
|
this.bindDocumentEscapeListener();
|
|
861
823
|
}
|
|
862
824
|
}
|
|
@@ -867,112 +829,116 @@ class Dialog extends BaseComponent {
|
|
|
867
829
|
this.unbindDocumentEscapeListener();
|
|
868
830
|
}
|
|
869
831
|
bindDocumentDragListener() {
|
|
870
|
-
if (!this.documentDragListener) {
|
|
832
|
+
if (!this.documentDragListener()) {
|
|
871
833
|
this.zone.runOutsideAngular(() => {
|
|
872
|
-
this.documentDragListener
|
|
834
|
+
this.documentDragListener.set(this.renderer.listen(this.document.defaultView, 'mousemove', this.onDrag.bind(this)));
|
|
873
835
|
});
|
|
874
836
|
}
|
|
875
837
|
}
|
|
876
838
|
unbindDocumentDragListener() {
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
839
|
+
const documentDragListener = this.documentDragListener();
|
|
840
|
+
if (documentDragListener) {
|
|
841
|
+
documentDragListener();
|
|
842
|
+
this.documentDragListener.set(null);
|
|
880
843
|
}
|
|
881
844
|
}
|
|
882
845
|
bindDocumentDragEndListener() {
|
|
883
|
-
if (!this.documentDragEndListener) {
|
|
846
|
+
if (!this.documentDragEndListener()) {
|
|
884
847
|
this.zone.runOutsideAngular(() => {
|
|
885
|
-
this.documentDragEndListener
|
|
848
|
+
this.documentDragEndListener.set(this.renderer.listen(this.document.defaultView, 'mouseup', this.endDrag.bind(this)));
|
|
886
849
|
});
|
|
887
850
|
}
|
|
888
851
|
}
|
|
889
852
|
unbindDocumentDragEndListener() {
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
853
|
+
const documentDragEndListener = this.documentDragEndListener();
|
|
854
|
+
if (documentDragEndListener) {
|
|
855
|
+
documentDragEndListener();
|
|
856
|
+
this.documentDragEndListener.set(null);
|
|
893
857
|
}
|
|
894
858
|
}
|
|
895
859
|
bindDocumentResizeListeners() {
|
|
896
|
-
if (!this.documentResizeListener && !this.documentResizeEndListener) {
|
|
860
|
+
if (!this.documentResizeListener() && !this.documentResizeEndListener()) {
|
|
897
861
|
this.zone.runOutsideAngular(() => {
|
|
898
|
-
this.documentResizeListener
|
|
899
|
-
this.documentResizeEndListener
|
|
862
|
+
this.documentResizeListener.set(this.renderer.listen(this.document.defaultView, 'mousemove', this.onResize.bind(this)));
|
|
863
|
+
this.documentResizeEndListener.set(this.renderer.listen(this.document.defaultView, 'mouseup', this.resizeEnd.bind(this)));
|
|
900
864
|
});
|
|
901
865
|
}
|
|
902
866
|
}
|
|
903
867
|
unbindDocumentResizeListeners() {
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
868
|
+
const documentResizeListener = this.documentResizeListener();
|
|
869
|
+
const documentResizeEndListener = this.documentResizeEndListener();
|
|
870
|
+
if (documentResizeListener && documentResizeEndListener) {
|
|
871
|
+
documentResizeListener();
|
|
872
|
+
documentResizeEndListener();
|
|
873
|
+
this.documentResizeListener.set(null);
|
|
874
|
+
this.documentResizeEndListener.set(null);
|
|
909
875
|
}
|
|
910
876
|
}
|
|
911
877
|
bindDocumentEscapeListener() {
|
|
912
878
|
const documentTarget = this.el ? this.el.nativeElement.ownerDocument : 'document';
|
|
913
|
-
this.documentEscapeListener
|
|
879
|
+
this.documentEscapeListener.set(this.renderer.listen(documentTarget, 'keydown', (event) => {
|
|
914
880
|
if (event.key == 'Escape') {
|
|
915
881
|
const container = this.container();
|
|
916
882
|
if (!container) {
|
|
917
883
|
return;
|
|
918
884
|
}
|
|
919
885
|
const currentZIndex = ZIndexUtils.getCurrent();
|
|
920
|
-
if (parseInt(container.style.zIndex) == currentZIndex || this.zIndexForLayering == currentZIndex) {
|
|
886
|
+
if (parseInt(container.style.zIndex) == currentZIndex || this.zIndexForLayering() == currentZIndex) {
|
|
921
887
|
this.close(event);
|
|
922
888
|
}
|
|
923
889
|
}
|
|
924
|
-
});
|
|
890
|
+
}));
|
|
925
891
|
}
|
|
926
892
|
unbindDocumentEscapeListener() {
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
893
|
+
const documentEscapeListener = this.documentEscapeListener();
|
|
894
|
+
if (documentEscapeListener) {
|
|
895
|
+
documentEscapeListener();
|
|
896
|
+
this.documentEscapeListener.set(null);
|
|
930
897
|
}
|
|
931
898
|
}
|
|
932
899
|
appendContainer() {
|
|
933
900
|
if (this.$appendTo() !== 'self') {
|
|
934
|
-
appendChild(this.document.body, this.wrapper);
|
|
901
|
+
appendChild(this.document.body, this.wrapper());
|
|
935
902
|
}
|
|
936
903
|
}
|
|
937
904
|
restoreAppend() {
|
|
938
905
|
if (this.container() && this.$appendTo() !== 'self') {
|
|
939
|
-
this.renderer.appendChild(this.el.nativeElement, this.wrapper);
|
|
906
|
+
this.renderer.appendChild(this.el.nativeElement, this.wrapper());
|
|
940
907
|
}
|
|
941
908
|
}
|
|
942
909
|
onBeforeEnter(event) {
|
|
943
910
|
this.container.set(event.element);
|
|
944
|
-
this.wrapper
|
|
911
|
+
this.wrapper.set(this.container()?.parentElement);
|
|
945
912
|
this.$attrSelector && this.container()?.setAttribute(this.$attrSelector, '');
|
|
946
913
|
this.appendContainer();
|
|
947
914
|
this.moveOnTop();
|
|
948
915
|
this.bindGlobalListeners();
|
|
949
916
|
this.container()?.setAttribute(this.id, '');
|
|
950
|
-
if (this.modal) {
|
|
917
|
+
if (this.modal()) {
|
|
951
918
|
this.enableModality();
|
|
952
919
|
}
|
|
953
920
|
}
|
|
954
921
|
onAfterEnter() {
|
|
955
|
-
if (this.focusOnShow) {
|
|
922
|
+
if (this.focusOnShow()) {
|
|
956
923
|
this.focus();
|
|
957
924
|
}
|
|
958
925
|
this.onShow.emit({});
|
|
959
926
|
}
|
|
960
927
|
onBeforeLeave() {
|
|
961
|
-
if (this.modal) {
|
|
962
|
-
this.maskVisible
|
|
928
|
+
if (this.modal()) {
|
|
929
|
+
this.maskVisible.set(false);
|
|
963
930
|
}
|
|
964
931
|
}
|
|
965
932
|
onAfterLeave() {
|
|
966
933
|
this.onContainerDestroy();
|
|
967
934
|
this.renderDialog.set(false);
|
|
968
|
-
if (this.modal) {
|
|
935
|
+
if (this.modal()) {
|
|
969
936
|
this.renderMask.set(false);
|
|
970
937
|
}
|
|
971
938
|
else {
|
|
972
|
-
this.maskVisible
|
|
939
|
+
this.maskVisible.set(false);
|
|
973
940
|
}
|
|
974
941
|
this.onHide.emit({});
|
|
975
|
-
this.cd.markForCheck();
|
|
976
942
|
}
|
|
977
943
|
onMaskAfterLeave() {
|
|
978
944
|
if (!this.renderDialog()) {
|
|
@@ -981,32 +947,35 @@ class Dialog extends BaseComponent {
|
|
|
981
947
|
}
|
|
982
948
|
onContainerDestroy() {
|
|
983
949
|
this.unbindGlobalListeners();
|
|
984
|
-
this.dragging
|
|
985
|
-
if (this.maximized) {
|
|
950
|
+
this.dragging.set(false);
|
|
951
|
+
if (this.maximized()) {
|
|
986
952
|
removeClass(this.document.body, 'p-overflow-hidden');
|
|
987
953
|
this.document.body.style.removeProperty('--scrollbar-width');
|
|
988
|
-
this.maximized
|
|
954
|
+
this.maximized.set(false);
|
|
989
955
|
}
|
|
990
|
-
if (this.modal) {
|
|
956
|
+
if (this.modal()) {
|
|
991
957
|
this.disableModality();
|
|
992
958
|
}
|
|
993
959
|
if (hasClass(this.document.body, 'p-overflow-hidden')) {
|
|
994
960
|
removeClass(this.document.body, 'p-overflow-hidden');
|
|
995
961
|
}
|
|
996
|
-
if (this.container() && this.autoZIndex) {
|
|
962
|
+
if (this.container() && this.autoZIndex()) {
|
|
997
963
|
ZIndexUtils.clear(this.container());
|
|
998
964
|
}
|
|
999
|
-
|
|
1000
|
-
|
|
965
|
+
const zIndexForLayering = this.zIndexForLayering();
|
|
966
|
+
if (zIndexForLayering) {
|
|
967
|
+
ZIndexUtils.revertZIndex(zIndexForLayering);
|
|
1001
968
|
}
|
|
1002
969
|
this.container.set(null);
|
|
1003
|
-
this.wrapper
|
|
1004
|
-
|
|
970
|
+
this.wrapper.set(null);
|
|
971
|
+
const originalStyle = this.originalStyle();
|
|
972
|
+
this._style.set(originalStyle ? { ...originalStyle } : {});
|
|
1005
973
|
}
|
|
1006
974
|
destroyStyle() {
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
this.styleElement
|
|
975
|
+
const styleElement = this.styleElement();
|
|
976
|
+
if (styleElement) {
|
|
977
|
+
this.renderer.removeChild(this.document.head, styleElement);
|
|
978
|
+
this.styleElement.set(null);
|
|
1010
979
|
}
|
|
1011
980
|
}
|
|
1012
981
|
onDestroy() {
|
|
@@ -1016,39 +985,38 @@ class Dialog extends BaseComponent {
|
|
|
1016
985
|
}
|
|
1017
986
|
this.destroyStyle();
|
|
1018
987
|
}
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
}
|
|
1025
|
-
static
|
|
1026
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Dialog, isStandalone: true, selector: "p-dialog", inputs: { hostName: { classPropertyName: "hostName", publicName: "hostName", isSignal: false, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, contentStyle: { classPropertyName: "contentStyle", publicName: "contentStyle", isSignal: false, isRequired: false, transformFunction: null }, contentStyleClass: { classPropertyName: "contentStyleClass", publicName: "contentStyleClass", isSignal: false, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, dismissableMask: { classPropertyName: "dismissableMask", publicName: "dismissableMask", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, rtl: { classPropertyName: "rtl", publicName: "rtl", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, breakpoints: { classPropertyName: "breakpoints", publicName: "breakpoints", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, maskStyleClass: { classPropertyName: "maskStyleClass", publicName: "maskStyleClass", isSignal: false, isRequired: false, transformFunction: null }, maskStyle: { classPropertyName: "maskStyle", publicName: "maskStyle", isSignal: false, isRequired: false, transformFunction: null }, showHeader: { classPropertyName: "showHeader", publicName: "showHeader", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, blockScroll: { classPropertyName: "blockScroll", publicName: "blockScroll", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, minX: { classPropertyName: "minX", publicName: "minX", isSignal: false, isRequired: false, transformFunction: numberAttribute }, minY: { classPropertyName: "minY", publicName: "minY", isSignal: false, isRequired: false, transformFunction: numberAttribute }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, maximizable: { classPropertyName: "maximizable", publicName: "maximizable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, keepInViewport: { classPropertyName: "keepInViewport", publicName: "keepInViewport", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, focusTrap: { classPropertyName: "focusTrap", publicName: "focusTrap", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, transitionOptions: { classPropertyName: "transitionOptions", publicName: "transitionOptions", isSignal: false, isRequired: false, transformFunction: null }, maskMotionOptions: { classPropertyName: "maskMotionOptions", publicName: "maskMotionOptions", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: false, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: false, isRequired: false, transformFunction: null }, closeTabindex: { classPropertyName: "closeTabindex", publicName: "closeTabindex", isSignal: false, isRequired: false, transformFunction: null }, minimizeIcon: { classPropertyName: "minimizeIcon", publicName: "minimizeIcon", isSignal: false, isRequired: false, transformFunction: null }, maximizeIcon: { classPropertyName: "maximizeIcon", publicName: "maximizeIcon", isSignal: false, isRequired: false, transformFunction: null }, closeButtonProps: { classPropertyName: "closeButtonProps", publicName: "closeButtonProps", isSignal: false, isRequired: false, transformFunction: null }, maximizeButtonProps: { classPropertyName: "maximizeButtonProps", publicName: "maximizeButtonProps", isSignal: false, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: false, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: false, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: false, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, headerTemplate: { classPropertyName: "headerTemplate", publicName: "content", isSignal: false, isRequired: false, transformFunction: null }, contentTemplate: { classPropertyName: "contentTemplate", publicName: "contentTemplate", isSignal: false, isRequired: false, transformFunction: null }, footerTemplate: { classPropertyName: "footerTemplate", publicName: "footerTemplate", isSignal: false, isRequired: false, transformFunction: null }, closeIconTemplate: { classPropertyName: "closeIconTemplate", publicName: "closeIconTemplate", isSignal: false, isRequired: false, transformFunction: null }, maximizeIconTemplate: { classPropertyName: "maximizeIconTemplate", publicName: "maximizeIconTemplate", isSignal: false, isRequired: false, transformFunction: null }, minimizeIconTemplate: { classPropertyName: "minimizeIconTemplate", publicName: "minimizeIconTemplate", isSignal: false, isRequired: false, transformFunction: null }, headlessTemplate: { classPropertyName: "headlessTemplate", publicName: "headlessTemplate", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide", visibleChange: "visibleChange", onResizeInit: "onResizeInit", onResizeEnd: "onResizeEnd", onDragEnd: "onDragEnd", onMaximize: "onMaximize" }, providers: [DialogStyle, { provide: DIALOG_INSTANCE, useExisting: Dialog }, { provide: PARENT_INSTANCE, useExisting: Dialog }], queries: [{ propertyName: "_headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "_contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "_footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "_closeiconTemplate", first: true, predicate: ["closeicon"], isSignal: true }, { propertyName: "_maximizeiconTemplate", first: true, predicate: ["maximizeicon"], isSignal: true }, { propertyName: "_minimizeiconTemplate", first: true, predicate: ["minimizeicon"], isSignal: true }, { propertyName: "_headlessTemplate", first: true, predicate: ["headless"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "headerViewChild", first: true, predicate: ["titlebar"], descendants: true, isSignal: true }, { propertyName: "contentViewChild", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "footerViewChild", first: true, predicate: ["footer"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
988
|
+
dataP = computed(() => this.cn({
|
|
989
|
+
maximized: this.maximized(),
|
|
990
|
+
modal: this.modal()
|
|
991
|
+
}), /* @ts-ignore */
|
|
992
|
+
...(ngDevMode ? [{ debugName: "dataP" }] : /* istanbul ignore next */ []));
|
|
993
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Dialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
994
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Dialog, isStandalone: true, selector: "p-dialog", inputs: { hostName: { classPropertyName: "hostName", publicName: "hostName", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, contentStyle: { classPropertyName: "contentStyle", publicName: "contentStyle", isSignal: true, isRequired: false, transformFunction: null }, contentStyleClass: { classPropertyName: "contentStyleClass", publicName: "contentStyleClass", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, dismissableMask: { classPropertyName: "dismissableMask", publicName: "dismissableMask", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, breakpoints: { classPropertyName: "breakpoints", publicName: "breakpoints", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, maskStyleClass: { classPropertyName: "maskStyleClass", publicName: "maskStyleClass", isSignal: true, isRequired: false, transformFunction: null }, maskStyle: { classPropertyName: "maskStyle", publicName: "maskStyle", isSignal: true, isRequired: false, transformFunction: null }, showHeader: { classPropertyName: "showHeader", publicName: "showHeader", isSignal: true, isRequired: false, transformFunction: null }, blockScroll: { classPropertyName: "blockScroll", publicName: "blockScroll", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, minX: { classPropertyName: "minX", publicName: "minX", isSignal: true, isRequired: false, transformFunction: null }, minY: { classPropertyName: "minY", publicName: "minY", isSignal: true, isRequired: false, transformFunction: null }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: true, isRequired: false, transformFunction: null }, maximizable: { classPropertyName: "maximizable", publicName: "maximizable", isSignal: true, isRequired: false, transformFunction: null }, keepInViewport: { classPropertyName: "keepInViewport", publicName: "keepInViewport", isSignal: true, isRequired: false, transformFunction: null }, focusTrap: { classPropertyName: "focusTrap", publicName: "focusTrap", isSignal: true, isRequired: false, transformFunction: null }, maskMotionOptions: { classPropertyName: "maskMotionOptions", publicName: "maskMotionOptions", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, closeTabindex: { classPropertyName: "closeTabindex", publicName: "closeTabindex", isSignal: true, isRequired: false, transformFunction: null }, minimizeIcon: { classPropertyName: "minimizeIcon", publicName: "minimizeIcon", isSignal: true, isRequired: false, transformFunction: null }, maximizeIcon: { classPropertyName: "maximizeIcon", publicName: "maximizeIcon", isSignal: true, isRequired: false, transformFunction: null }, closeButtonProps: { classPropertyName: "closeButtonProps", publicName: "closeButtonProps", isSignal: true, isRequired: false, transformFunction: null }, maximizeButtonProps: { classPropertyName: "maximizeButtonProps", publicName: "maximizeButtonProps", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, headerTemplate: { classPropertyName: "headerTemplate", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, contentTemplate: { classPropertyName: "contentTemplate", publicName: "contentTemplate", isSignal: true, isRequired: false, transformFunction: null }, footerTemplate: { classPropertyName: "footerTemplate", publicName: "footerTemplate", isSignal: true, isRequired: false, transformFunction: null }, closeIconTemplate: { classPropertyName: "closeIconTemplate", publicName: "closeIconTemplate", isSignal: true, isRequired: false, transformFunction: null }, maximizeIconTemplate: { classPropertyName: "maximizeIconTemplate", publicName: "maximizeIconTemplate", isSignal: true, isRequired: false, transformFunction: null }, minimizeIconTemplate: { classPropertyName: "minimizeIconTemplate", publicName: "minimizeIconTemplate", isSignal: true, isRequired: false, transformFunction: null }, headlessTemplate: { classPropertyName: "headlessTemplate", publicName: "headlessTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", onShow: "onShow", onHide: "onHide", onResizeInit: "onResizeInit", onResizeEnd: "onResizeEnd", onDragEnd: "onDragEnd", onMaximize: "onMaximize" }, providers: [DialogStyle, { provide: DIALOG_INSTANCE, useExisting: Dialog }, { provide: PARENT_INSTANCE, useExisting: Dialog }], queries: [{ propertyName: "_headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "_contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "_footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "_closeiconTemplate", first: true, predicate: ["closeicon"], isSignal: true }, { propertyName: "_maximizeiconTemplate", first: true, predicate: ["maximizeicon"], isSignal: true }, { propertyName: "_minimizeiconTemplate", first: true, predicate: ["minimizeicon"], isSignal: true }, { propertyName: "_headlessTemplate", first: true, predicate: ["headless"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "headerViewChild", first: true, predicate: ["titlebar"], descendants: true, isSignal: true }, { propertyName: "contentViewChild", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "footerViewChild", first: true, predicate: ["footer"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
1027
995
|
@if (renderMask()) {
|
|
1028
996
|
<div
|
|
1029
|
-
[class]="cn(cx('mask'), maskStyleClass)"
|
|
997
|
+
[class]="cn(cx('mask'), maskStyleClass())"
|
|
1030
998
|
[style]="sx('mask')"
|
|
1031
|
-
[ngStyle]="maskStyle"
|
|
999
|
+
[ngStyle]="maskStyle()"
|
|
1032
1000
|
[pBind]="ptm('mask')"
|
|
1033
|
-
[pMotion]="maskVisible"
|
|
1001
|
+
[pMotion]="maskVisible()"
|
|
1034
1002
|
[pMotionAppear]="true"
|
|
1035
|
-
[pMotionEnterActiveClass]="modal ? 'p-overlay-mask-enter-active' : ''"
|
|
1036
|
-
[pMotionLeaveActiveClass]="modal ? 'p-overlay-mask-leave-active' : ''"
|
|
1003
|
+
[pMotionEnterActiveClass]="modal() ? 'p-overlay-mask-enter-active' : ''"
|
|
1004
|
+
[pMotionLeaveActiveClass]="modal() ? 'p-overlay-mask-leave-active' : ''"
|
|
1037
1005
|
[pMotionOptions]="computedMaskMotionOptions()"
|
|
1038
1006
|
(pMotionOnAfterLeave)="onMaskAfterLeave()"
|
|
1039
|
-
[attr.data-p-scrollblocker-active]="modal || blockScroll"
|
|
1040
|
-
[attr.data-p]="dataP"
|
|
1007
|
+
[attr.data-p-scrollblocker-active]="modal() || blockScroll()"
|
|
1008
|
+
[attr.data-p]="dataP()"
|
|
1041
1009
|
>
|
|
1042
1010
|
@if (renderDialog()) {
|
|
1043
1011
|
<div
|
|
1044
1012
|
#container
|
|
1045
|
-
[class]="cn(cx('root'), styleClass)"
|
|
1013
|
+
[class]="cn(cx('root'), styleClass())"
|
|
1046
1014
|
[style]="sx('root')"
|
|
1047
|
-
[ngStyle]="
|
|
1015
|
+
[ngStyle]="_style()"
|
|
1048
1016
|
[pBind]="ptm('root')"
|
|
1049
1017
|
pFocusTrap
|
|
1050
|
-
[pFocusTrapDisabled]="focusTrap === false"
|
|
1051
|
-
[pMotion]="visible"
|
|
1018
|
+
[pFocusTrapDisabled]="focusTrap() === false"
|
|
1019
|
+
[pMotion]="visible()"
|
|
1052
1020
|
[pMotionAppear]="true"
|
|
1053
1021
|
[pMotionName]="'p-dialog'"
|
|
1054
1022
|
[pMotionOptions]="computedMotionOptions()"
|
|
@@ -1056,118 +1024,137 @@ class Dialog extends BaseComponent {
|
|
|
1056
1024
|
(pMotionOnAfterEnter)="onAfterEnter($event)"
|
|
1057
1025
|
(pMotionOnBeforeLeave)="onBeforeLeave($event)"
|
|
1058
1026
|
(pMotionOnAfterLeave)="onAfterLeave($event)"
|
|
1059
|
-
[attr.role]="role"
|
|
1027
|
+
[attr.role]="role()"
|
|
1060
1028
|
[attr.aria-labelledby]="computedAriaLabelledBy()"
|
|
1061
1029
|
[attr.aria-modal]="true"
|
|
1062
|
-
[attr.data-p]="dataP"
|
|
1030
|
+
[attr.data-p]="dataP()"
|
|
1063
1031
|
>
|
|
1064
|
-
|
|
1065
|
-
<ng-container *ngTemplateOutlet="_headlessTemplate() || headlessTemplate || headlessT"></ng-container>
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
<
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
<
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1032
|
+
@if (_headlessTemplate() || headlessTemplate() || headlessT()) {
|
|
1033
|
+
<ng-container *ngTemplateOutlet="_headlessTemplate() || headlessTemplate() || headlessT()"></ng-container>
|
|
1034
|
+
} @else {
|
|
1035
|
+
@if (resizable()) {
|
|
1036
|
+
<div [class]="cx('resizeHandle')" [pBind]="ptm('resizeHandle')" [style.z-index]="90" (mousedown)="initResize($event)"></div>
|
|
1037
|
+
}
|
|
1038
|
+
@if (showHeader()) {
|
|
1039
|
+
<div #titlebar [class]="cx('header')" [pBind]="ptm('header')" (mousedown)="initDrag($event)">
|
|
1040
|
+
@if (!_headerTemplate() && !headerTemplate() && !headerT()) {
|
|
1041
|
+
<span [id]="headerId()" [class]="cx('title')" [pBind]="ptm('title')">{{ header() }}</span>
|
|
1042
|
+
}
|
|
1043
|
+
<ng-container *ngTemplateOutlet="_headerTemplate() || headerTemplate() || headerT(); context: { ariaLabelledBy: computedAriaLabelledBy() }"></ng-container>
|
|
1044
|
+
<div [class]="cx('headerActions')" [pBind]="ptm('headerActions')">
|
|
1045
|
+
@if (maximizable()) {
|
|
1046
|
+
<p-button
|
|
1047
|
+
[pt]="ptm('pcMaximizeButton')"
|
|
1048
|
+
[styleClass]="cx('pcMaximizeButton')"
|
|
1049
|
+
[ariaLabel]="maximized() ? minimizeLabel : maximizeLabel"
|
|
1050
|
+
(onClick)="maximize()"
|
|
1051
|
+
(keydown.enter)="maximize()"
|
|
1052
|
+
[tabindex]="maximizable() ? '0' : '-1'"
|
|
1053
|
+
[buttonProps]="maximizeButtonProps()"
|
|
1054
|
+
[unstyled]="unstyled()"
|
|
1055
|
+
[attr.data-pc-group-section]="'headericon'"
|
|
1056
|
+
>
|
|
1057
|
+
<ng-template #icon>
|
|
1058
|
+
@if (maximizeIcon() && !_maximizeiconTemplate() && !_minimizeiconTemplate()) {
|
|
1059
|
+
<span [ngClass]="maximized() ? minimizeIcon() : maximizeIcon()"></span>
|
|
1060
|
+
}
|
|
1061
|
+
@if (!maximizeIcon() && !maximizeButtonProps()?.icon) {
|
|
1062
|
+
@if (!maximized() && !_maximizeiconTemplate() && !maximizeIconTemplate() && !maximizeIconT()) {
|
|
1063
|
+
<svg data-p-icon="window-maximize" />
|
|
1064
|
+
}
|
|
1065
|
+
@if (maximized() && !_minimizeiconTemplate() && !minimizeIconTemplate() && !minimizeIconT()) {
|
|
1066
|
+
<svg data-p-icon="window-minimize" />
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
@if (!maximized()) {
|
|
1070
|
+
<ng-template *ngTemplateOutlet="_maximizeiconTemplate() || maximizeIconTemplate() || maximizeIconT()"></ng-template>
|
|
1071
|
+
}
|
|
1072
|
+
@if (maximized()) {
|
|
1073
|
+
<ng-template *ngTemplateOutlet="_minimizeiconTemplate() || minimizeIconTemplate() || minimizeIconT()"></ng-template>
|
|
1074
|
+
}
|
|
1075
|
+
</ng-template>
|
|
1076
|
+
</p-button>
|
|
1077
|
+
}
|
|
1078
|
+
@if (closable()) {
|
|
1079
|
+
<p-button
|
|
1080
|
+
[pt]="ptm('pcCloseButton')"
|
|
1081
|
+
[styleClass]="cx('pcCloseButton')"
|
|
1082
|
+
[ariaLabel]="closeAriaLabel()"
|
|
1083
|
+
(onClick)="close($event)"
|
|
1084
|
+
(keydown.enter)="close($event)"
|
|
1085
|
+
[tabindex]="closeTabindex()"
|
|
1086
|
+
[buttonProps]="closeButtonProps()"
|
|
1087
|
+
[unstyled]="unstyled()"
|
|
1088
|
+
[attr.data-pc-group-section]="'headericon'"
|
|
1089
|
+
>
|
|
1090
|
+
<ng-template #icon>
|
|
1091
|
+
@if (!_closeiconTemplate() && !closeIconTemplate() && !closeIconT() && !closeButtonProps()?.icon) {
|
|
1092
|
+
@if (closeIcon()) {
|
|
1093
|
+
<span [class]="closeIcon()"></span>
|
|
1094
|
+
}
|
|
1095
|
+
@if (!closeIcon()) {
|
|
1096
|
+
<svg data-p-icon="times" />
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
@if (_closeiconTemplate() || closeIconTemplate() || closeIconT()) {
|
|
1100
|
+
<span>
|
|
1101
|
+
<ng-template *ngTemplateOutlet="_closeiconTemplate() || closeIconTemplate() || closeIconT()"></ng-template>
|
|
1102
|
+
</span>
|
|
1103
|
+
}
|
|
1104
|
+
</ng-template>
|
|
1105
|
+
</p-button>
|
|
1106
|
+
}
|
|
1107
|
+
</div>
|
|
1122
1108
|
</div>
|
|
1123
|
-
|
|
1124
|
-
<div #content [class]="cn(cx('content'), contentStyleClass)" [ngStyle]="contentStyle" [pBind]="ptm('content')">
|
|
1109
|
+
}
|
|
1110
|
+
<div #content [class]="cn(cx('content'), contentStyleClass())" [ngStyle]="contentStyle()" [pBind]="ptm('content')">
|
|
1125
1111
|
<ng-content></ng-content>
|
|
1126
|
-
<ng-container *ngTemplateOutlet="_contentTemplate() || contentTemplate || contentT"></ng-container>
|
|
1127
|
-
</div>
|
|
1128
|
-
<div #footer [class]="cx('footer')" [pBind]="ptm('footer')" *ngIf="_footerTemplate() || footerTemplate || footerT">
|
|
1129
|
-
<ng-content select="p-footer"></ng-content>
|
|
1130
|
-
<ng-container *ngTemplateOutlet="_footerTemplate() || footerTemplate || footerT"></ng-container>
|
|
1112
|
+
<ng-container *ngTemplateOutlet="_contentTemplate() || contentTemplate() || contentT()"></ng-container>
|
|
1131
1113
|
</div>
|
|
1132
|
-
|
|
1114
|
+
@if (_footerTemplate() || footerTemplate() || footerT()) {
|
|
1115
|
+
<div #footer [class]="cx('footer')" [pBind]="ptm('footer')">
|
|
1116
|
+
<ng-content select="p-footer"></ng-content>
|
|
1117
|
+
<ng-container *ngTemplateOutlet="_footerTemplate() || footerTemplate() || footerT()"></ng-container>
|
|
1118
|
+
</div>
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1133
1121
|
</div>
|
|
1134
1122
|
}
|
|
1135
1123
|
</div>
|
|
1136
1124
|
}
|
|
1137
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.
|
|
1125
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: FocusTrap, selector: "[pFocusTrap]", inputs: ["pFocusTrapDisabled"] }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: WindowMaximizeIcon, selector: "[data-p-icon=\"window-maximize\"]" }, { kind: "component", type: WindowMinimizeIcon, selector: "[data-p-icon=\"window-minimize\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i3.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1138
1126
|
}
|
|
1139
1127
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Dialog, decorators: [{
|
|
1140
1128
|
type: Component,
|
|
1141
1129
|
args: [{
|
|
1142
1130
|
selector: 'p-dialog',
|
|
1143
|
-
standalone: true,
|
|
1144
1131
|
imports: [CommonModule, Button, FocusTrap, TimesIcon, WindowMaximizeIcon, WindowMinimizeIcon, SharedModule, Bind, MotionModule],
|
|
1145
1132
|
template: `
|
|
1146
1133
|
@if (renderMask()) {
|
|
1147
1134
|
<div
|
|
1148
|
-
[class]="cn(cx('mask'), maskStyleClass)"
|
|
1135
|
+
[class]="cn(cx('mask'), maskStyleClass())"
|
|
1149
1136
|
[style]="sx('mask')"
|
|
1150
|
-
[ngStyle]="maskStyle"
|
|
1137
|
+
[ngStyle]="maskStyle()"
|
|
1151
1138
|
[pBind]="ptm('mask')"
|
|
1152
|
-
[pMotion]="maskVisible"
|
|
1139
|
+
[pMotion]="maskVisible()"
|
|
1153
1140
|
[pMotionAppear]="true"
|
|
1154
|
-
[pMotionEnterActiveClass]="modal ? 'p-overlay-mask-enter-active' : ''"
|
|
1155
|
-
[pMotionLeaveActiveClass]="modal ? 'p-overlay-mask-leave-active' : ''"
|
|
1141
|
+
[pMotionEnterActiveClass]="modal() ? 'p-overlay-mask-enter-active' : ''"
|
|
1142
|
+
[pMotionLeaveActiveClass]="modal() ? 'p-overlay-mask-leave-active' : ''"
|
|
1156
1143
|
[pMotionOptions]="computedMaskMotionOptions()"
|
|
1157
1144
|
(pMotionOnAfterLeave)="onMaskAfterLeave()"
|
|
1158
|
-
[attr.data-p-scrollblocker-active]="modal || blockScroll"
|
|
1159
|
-
[attr.data-p]="dataP"
|
|
1145
|
+
[attr.data-p-scrollblocker-active]="modal() || blockScroll()"
|
|
1146
|
+
[attr.data-p]="dataP()"
|
|
1160
1147
|
>
|
|
1161
1148
|
@if (renderDialog()) {
|
|
1162
1149
|
<div
|
|
1163
1150
|
#container
|
|
1164
|
-
[class]="cn(cx('root'), styleClass)"
|
|
1151
|
+
[class]="cn(cx('root'), styleClass())"
|
|
1165
1152
|
[style]="sx('root')"
|
|
1166
|
-
[ngStyle]="
|
|
1153
|
+
[ngStyle]="_style()"
|
|
1167
1154
|
[pBind]="ptm('root')"
|
|
1168
1155
|
pFocusTrap
|
|
1169
|
-
[pFocusTrapDisabled]="focusTrap === false"
|
|
1170
|
-
[pMotion]="visible"
|
|
1156
|
+
[pFocusTrapDisabled]="focusTrap() === false"
|
|
1157
|
+
[pMotion]="visible()"
|
|
1171
1158
|
[pMotionAppear]="true"
|
|
1172
1159
|
[pMotionName]="'p-dialog'"
|
|
1173
1160
|
[pMotionOptions]="computedMotionOptions()"
|
|
@@ -1175,80 +1162,100 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1175
1162
|
(pMotionOnAfterEnter)="onAfterEnter($event)"
|
|
1176
1163
|
(pMotionOnBeforeLeave)="onBeforeLeave($event)"
|
|
1177
1164
|
(pMotionOnAfterLeave)="onAfterLeave($event)"
|
|
1178
|
-
[attr.role]="role"
|
|
1165
|
+
[attr.role]="role()"
|
|
1179
1166
|
[attr.aria-labelledby]="computedAriaLabelledBy()"
|
|
1180
1167
|
[attr.aria-modal]="true"
|
|
1181
|
-
[attr.data-p]="dataP"
|
|
1168
|
+
[attr.data-p]="dataP()"
|
|
1182
1169
|
>
|
|
1183
|
-
|
|
1184
|
-
<ng-container *ngTemplateOutlet="_headlessTemplate() || headlessTemplate || headlessT"></ng-container>
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
<
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
<
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1170
|
+
@if (_headlessTemplate() || headlessTemplate() || headlessT()) {
|
|
1171
|
+
<ng-container *ngTemplateOutlet="_headlessTemplate() || headlessTemplate() || headlessT()"></ng-container>
|
|
1172
|
+
} @else {
|
|
1173
|
+
@if (resizable()) {
|
|
1174
|
+
<div [class]="cx('resizeHandle')" [pBind]="ptm('resizeHandle')" [style.z-index]="90" (mousedown)="initResize($event)"></div>
|
|
1175
|
+
}
|
|
1176
|
+
@if (showHeader()) {
|
|
1177
|
+
<div #titlebar [class]="cx('header')" [pBind]="ptm('header')" (mousedown)="initDrag($event)">
|
|
1178
|
+
@if (!_headerTemplate() && !headerTemplate() && !headerT()) {
|
|
1179
|
+
<span [id]="headerId()" [class]="cx('title')" [pBind]="ptm('title')">{{ header() }}</span>
|
|
1180
|
+
}
|
|
1181
|
+
<ng-container *ngTemplateOutlet="_headerTemplate() || headerTemplate() || headerT(); context: { ariaLabelledBy: computedAriaLabelledBy() }"></ng-container>
|
|
1182
|
+
<div [class]="cx('headerActions')" [pBind]="ptm('headerActions')">
|
|
1183
|
+
@if (maximizable()) {
|
|
1184
|
+
<p-button
|
|
1185
|
+
[pt]="ptm('pcMaximizeButton')"
|
|
1186
|
+
[styleClass]="cx('pcMaximizeButton')"
|
|
1187
|
+
[ariaLabel]="maximized() ? minimizeLabel : maximizeLabel"
|
|
1188
|
+
(onClick)="maximize()"
|
|
1189
|
+
(keydown.enter)="maximize()"
|
|
1190
|
+
[tabindex]="maximizable() ? '0' : '-1'"
|
|
1191
|
+
[buttonProps]="maximizeButtonProps()"
|
|
1192
|
+
[unstyled]="unstyled()"
|
|
1193
|
+
[attr.data-pc-group-section]="'headericon'"
|
|
1194
|
+
>
|
|
1195
|
+
<ng-template #icon>
|
|
1196
|
+
@if (maximizeIcon() && !_maximizeiconTemplate() && !_minimizeiconTemplate()) {
|
|
1197
|
+
<span [ngClass]="maximized() ? minimizeIcon() : maximizeIcon()"></span>
|
|
1198
|
+
}
|
|
1199
|
+
@if (!maximizeIcon() && !maximizeButtonProps()?.icon) {
|
|
1200
|
+
@if (!maximized() && !_maximizeiconTemplate() && !maximizeIconTemplate() && !maximizeIconT()) {
|
|
1201
|
+
<svg data-p-icon="window-maximize" />
|
|
1202
|
+
}
|
|
1203
|
+
@if (maximized() && !_minimizeiconTemplate() && !minimizeIconTemplate() && !minimizeIconT()) {
|
|
1204
|
+
<svg data-p-icon="window-minimize" />
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
@if (!maximized()) {
|
|
1208
|
+
<ng-template *ngTemplateOutlet="_maximizeiconTemplate() || maximizeIconTemplate() || maximizeIconT()"></ng-template>
|
|
1209
|
+
}
|
|
1210
|
+
@if (maximized()) {
|
|
1211
|
+
<ng-template *ngTemplateOutlet="_minimizeiconTemplate() || minimizeIconTemplate() || minimizeIconT()"></ng-template>
|
|
1212
|
+
}
|
|
1213
|
+
</ng-template>
|
|
1214
|
+
</p-button>
|
|
1215
|
+
}
|
|
1216
|
+
@if (closable()) {
|
|
1217
|
+
<p-button
|
|
1218
|
+
[pt]="ptm('pcCloseButton')"
|
|
1219
|
+
[styleClass]="cx('pcCloseButton')"
|
|
1220
|
+
[ariaLabel]="closeAriaLabel()"
|
|
1221
|
+
(onClick)="close($event)"
|
|
1222
|
+
(keydown.enter)="close($event)"
|
|
1223
|
+
[tabindex]="closeTabindex()"
|
|
1224
|
+
[buttonProps]="closeButtonProps()"
|
|
1225
|
+
[unstyled]="unstyled()"
|
|
1226
|
+
[attr.data-pc-group-section]="'headericon'"
|
|
1227
|
+
>
|
|
1228
|
+
<ng-template #icon>
|
|
1229
|
+
@if (!_closeiconTemplate() && !closeIconTemplate() && !closeIconT() && !closeButtonProps()?.icon) {
|
|
1230
|
+
@if (closeIcon()) {
|
|
1231
|
+
<span [class]="closeIcon()"></span>
|
|
1232
|
+
}
|
|
1233
|
+
@if (!closeIcon()) {
|
|
1234
|
+
<svg data-p-icon="times" />
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
@if (_closeiconTemplate() || closeIconTemplate() || closeIconT()) {
|
|
1238
|
+
<span>
|
|
1239
|
+
<ng-template *ngTemplateOutlet="_closeiconTemplate() || closeIconTemplate() || closeIconT()"></ng-template>
|
|
1240
|
+
</span>
|
|
1241
|
+
}
|
|
1242
|
+
</ng-template>
|
|
1243
|
+
</p-button>
|
|
1244
|
+
}
|
|
1245
|
+
</div>
|
|
1241
1246
|
</div>
|
|
1242
|
-
|
|
1243
|
-
<div #content [class]="cn(cx('content'), contentStyleClass)" [ngStyle]="contentStyle" [pBind]="ptm('content')">
|
|
1247
|
+
}
|
|
1248
|
+
<div #content [class]="cn(cx('content'), contentStyleClass())" [ngStyle]="contentStyle()" [pBind]="ptm('content')">
|
|
1244
1249
|
<ng-content></ng-content>
|
|
1245
|
-
<ng-container *ngTemplateOutlet="_contentTemplate() || contentTemplate || contentT"></ng-container>
|
|
1246
|
-
</div>
|
|
1247
|
-
<div #footer [class]="cx('footer')" [pBind]="ptm('footer')" *ngIf="_footerTemplate() || footerTemplate || footerT">
|
|
1248
|
-
<ng-content select="p-footer"></ng-content>
|
|
1249
|
-
<ng-container *ngTemplateOutlet="_footerTemplate() || footerTemplate || footerT"></ng-container>
|
|
1250
|
+
<ng-container *ngTemplateOutlet="_contentTemplate() || contentTemplate() || contentT()"></ng-container>
|
|
1250
1251
|
</div>
|
|
1251
|
-
|
|
1252
|
+
@if (_footerTemplate() || footerTemplate() || footerT()) {
|
|
1253
|
+
<div #footer [class]="cx('footer')" [pBind]="ptm('footer')">
|
|
1254
|
+
<ng-content select="p-footer"></ng-content>
|
|
1255
|
+
<ng-container *ngTemplateOutlet="_footerTemplate() || footerTemplate() || footerT()"></ng-container>
|
|
1256
|
+
</div>
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1252
1259
|
</div>
|
|
1253
1260
|
}
|
|
1254
1261
|
</div>
|
|
@@ -1259,111 +1266,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1259
1266
|
providers: [DialogStyle, { provide: DIALOG_INSTANCE, useExisting: Dialog }, { provide: PARENT_INSTANCE, useExisting: Dialog }],
|
|
1260
1267
|
hostDirectives: [Bind]
|
|
1261
1268
|
}]
|
|
1262
|
-
}], propDecorators: { hostName: [{
|
|
1263
|
-
type: Input
|
|
1264
|
-
}], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], draggable: [{
|
|
1265
|
-
type: Input,
|
|
1266
|
-
args: [{ transform: booleanAttribute }]
|
|
1267
|
-
}], resizable: [{
|
|
1268
|
-
type: Input,
|
|
1269
|
-
args: [{ transform: booleanAttribute }]
|
|
1270
|
-
}], contentStyle: [{
|
|
1271
|
-
type: Input
|
|
1272
|
-
}], contentStyleClass: [{
|
|
1273
|
-
type: Input
|
|
1274
|
-
}], modal: [{
|
|
1275
|
-
type: Input,
|
|
1276
|
-
args: [{ transform: booleanAttribute }]
|
|
1277
|
-
}], closeOnEscape: [{
|
|
1278
|
-
type: Input,
|
|
1279
|
-
args: [{ transform: booleanAttribute }]
|
|
1280
|
-
}], dismissableMask: [{
|
|
1281
|
-
type: Input,
|
|
1282
|
-
args: [{ transform: booleanAttribute }]
|
|
1283
|
-
}], rtl: [{
|
|
1284
|
-
type: Input,
|
|
1285
|
-
args: [{ transform: booleanAttribute }]
|
|
1286
|
-
}], closable: [{
|
|
1287
|
-
type: Input,
|
|
1288
|
-
args: [{ transform: booleanAttribute }]
|
|
1289
|
-
}], breakpoints: [{
|
|
1290
|
-
type: Input
|
|
1291
|
-
}], styleClass: [{
|
|
1292
|
-
type: Input
|
|
1293
|
-
}], maskStyleClass: [{
|
|
1294
|
-
type: Input
|
|
1295
|
-
}], maskStyle: [{
|
|
1296
|
-
type: Input
|
|
1297
|
-
}], showHeader: [{
|
|
1298
|
-
type: Input,
|
|
1299
|
-
args: [{ transform: booleanAttribute }]
|
|
1300
|
-
}], blockScroll: [{
|
|
1301
|
-
type: Input,
|
|
1302
|
-
args: [{ transform: booleanAttribute }]
|
|
1303
|
-
}], autoZIndex: [{
|
|
1304
|
-
type: Input,
|
|
1305
|
-
args: [{ transform: booleanAttribute }]
|
|
1306
|
-
}], baseZIndex: [{
|
|
1307
|
-
type: Input,
|
|
1308
|
-
args: [{ transform: numberAttribute }]
|
|
1309
|
-
}], minX: [{
|
|
1310
|
-
type: Input,
|
|
1311
|
-
args: [{ transform: numberAttribute }]
|
|
1312
|
-
}], minY: [{
|
|
1313
|
-
type: Input,
|
|
1314
|
-
args: [{ transform: numberAttribute }]
|
|
1315
|
-
}], focusOnShow: [{
|
|
1316
|
-
type: Input,
|
|
1317
|
-
args: [{ transform: booleanAttribute }]
|
|
1318
|
-
}], maximizable: [{
|
|
1319
|
-
type: Input,
|
|
1320
|
-
args: [{ transform: booleanAttribute }]
|
|
1321
|
-
}], keepInViewport: [{
|
|
1322
|
-
type: Input,
|
|
1323
|
-
args: [{ transform: booleanAttribute }]
|
|
1324
|
-
}], focusTrap: [{
|
|
1325
|
-
type: Input,
|
|
1326
|
-
args: [{ transform: booleanAttribute }]
|
|
1327
|
-
}], transitionOptions: [{
|
|
1328
|
-
type: Input
|
|
1329
|
-
}], maskMotionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskMotionOptions", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], closeIcon: [{
|
|
1330
|
-
type: Input
|
|
1331
|
-
}], closeAriaLabel: [{
|
|
1332
|
-
type: Input
|
|
1333
|
-
}], closeTabindex: [{
|
|
1334
|
-
type: Input
|
|
1335
|
-
}], minimizeIcon: [{
|
|
1336
|
-
type: Input
|
|
1337
|
-
}], maximizeIcon: [{
|
|
1338
|
-
type: Input
|
|
1339
|
-
}], closeButtonProps: [{
|
|
1340
|
-
type: Input
|
|
1341
|
-
}], maximizeButtonProps: [{
|
|
1342
|
-
type: Input
|
|
1343
|
-
}], visible: [{
|
|
1344
|
-
type: Input
|
|
1345
|
-
}], style: [{
|
|
1346
|
-
type: Input
|
|
1347
|
-
}], position: [{
|
|
1348
|
-
type: Input
|
|
1349
|
-
}], role: [{
|
|
1350
|
-
type: Input
|
|
1351
|
-
}], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], visibleChange: [{ type: i0.Output, args: ["visibleChange"] }], onResizeInit: [{ type: i0.Output, args: ["onResizeInit"] }], onResizeEnd: [{ type: i0.Output, args: ["onResizeEnd"] }], onDragEnd: [{ type: i0.Output, args: ["onDragEnd"] }], onMaximize: [{ type: i0.Output, args: ["onMaximize"] }], headerViewChild: [{ type: i0.ViewChild, args: ['titlebar', { isSignal: true }] }], contentViewChild: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], footerViewChild: [{ type: i0.ViewChild, args: ['footer', { isSignal: true }] }], headerTemplate: [{
|
|
1352
|
-
type: Input,
|
|
1353
|
-
args: ['content']
|
|
1354
|
-
}], contentTemplate: [{
|
|
1355
|
-
type: Input
|
|
1356
|
-
}], footerTemplate: [{
|
|
1357
|
-
type: Input
|
|
1358
|
-
}], closeIconTemplate: [{
|
|
1359
|
-
type: Input
|
|
1360
|
-
}], maximizeIconTemplate: [{
|
|
1361
|
-
type: Input
|
|
1362
|
-
}], minimizeIconTemplate: [{
|
|
1363
|
-
type: Input
|
|
1364
|
-
}], headlessTemplate: [{
|
|
1365
|
-
type: Input
|
|
1366
|
-
}], _headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], _contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], _footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], _closeiconTemplate: [{ type: i0.ContentChild, args: ['closeicon', { ...{ descendants: false }, isSignal: true }] }], _maximizeiconTemplate: [{ type: i0.ContentChild, args: ['maximizeicon', { ...{ descendants: false }, isSignal: true }] }], _minimizeiconTemplate: [{ type: i0.ContentChild, args: ['minimizeicon', { ...{ descendants: false }, isSignal: true }] }], _headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
1269
|
+
}], ctorParameters: () => [], propDecorators: { hostName: [{ type: i0.Input, args: [{ isSignal: true, alias: "hostName", required: false }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], draggable: [{ type: i0.Input, args: [{ isSignal: true, alias: "draggable", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], contentStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentStyle", required: false }] }], contentStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentStyleClass", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], dismissableMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissableMask", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], breakpoints: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoints", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], maskStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskStyleClass", required: false }] }], maskStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskStyle", required: false }] }], showHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "showHeader", required: false }] }], blockScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "blockScroll", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], minX: [{ type: i0.Input, args: [{ isSignal: true, alias: "minX", required: false }] }], minY: [{ type: i0.Input, args: [{ isSignal: true, alias: "minY", required: false }] }], focusOnShow: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnShow", required: false }] }], maximizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximizable", required: false }] }], keepInViewport: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepInViewport", required: false }] }], focusTrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusTrap", required: false }] }], maskMotionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskMotionOptions", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], closeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeIcon", required: false }] }], closeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeAriaLabel", required: false }] }], closeTabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeTabindex", required: false }] }], minimizeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimizeIcon", required: false }] }], maximizeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximizeIcon", required: false }] }], closeButtonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonProps", required: false }] }], maximizeButtonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximizeButtonProps", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], onResizeInit: [{ type: i0.Output, args: ["onResizeInit"] }], onResizeEnd: [{ type: i0.Output, args: ["onResizeEnd"] }], onDragEnd: [{ type: i0.Output, args: ["onDragEnd"] }], onMaximize: [{ type: i0.Output, args: ["onMaximize"] }], headerViewChild: [{ type: i0.ViewChild, args: ['titlebar', { isSignal: true }] }], contentViewChild: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], footerViewChild: [{ type: i0.ViewChild, args: ['footer', { isSignal: true }] }], headerTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }], contentTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentTemplate", required: false }] }], footerTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerTemplate", required: false }] }], closeIconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeIconTemplate", required: false }] }], maximizeIconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximizeIconTemplate", required: false }] }], minimizeIconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimizeIconTemplate", required: false }] }], headlessTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "headlessTemplate", required: false }] }], _headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], _contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], _footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], _closeiconTemplate: [{ type: i0.ContentChild, args: ['closeicon', { ...{ descendants: false }, isSignal: true }] }], _maximizeiconTemplate: [{ type: i0.ContentChild, args: ['maximizeicon', { ...{ descendants: false }, isSignal: true }] }], _minimizeiconTemplate: [{ type: i0.ContentChild, args: ['minimizeicon', { ...{ descendants: false }, isSignal: true }] }], _headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
1367
1270
|
class DialogModule {
|
|
1368
1271
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1369
1272
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: DialogModule, imports: [Dialog, SharedModule], exports: [Dialog, SharedModule] });
|