@exhaustive-ui/core 3.0.0-alpha.0 → 3.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +6 -13
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +485 -683
- 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 +379 -451
- 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 +157 -332
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +187 -210
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +315 -361
- 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 +1012 -1157
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +370 -507
- 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 +486 -541
- 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-baseicon.mjs +8 -13
- package/fesm2022/exhaustive-ui-core-icons-baseicon.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 +64 -98
- 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 +365 -546
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +320 -371
- 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-multiselect.mjs +647 -835
- 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 +557 -655
- 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 +581 -784
- 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 +2213 -2543
- 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 +318 -394
- 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 +327 -421
- 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 +5 -5
- 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 +7 -2
- 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
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as i2 from '@angular/common';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Injectable, InjectionToken, inject,
|
|
5
|
-
import { uuid, findSingle, setAttribute } from '@exhaustive-ui/utils';
|
|
4
|
+
import { Injectable, InjectionToken, inject, input, booleanAttribute, numberAttribute, model, output, contentChild, contentChildren, computed, signal, afterEveryRender, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
5
|
import { ConfirmationService, PrimeTemplate, ConfirmEventType, TranslationKeys, SharedModule } from '@exhaustive-ui/core/api';
|
|
7
6
|
import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
|
|
8
7
|
import * as i1 from '@exhaustive-ui/core/bind';
|
|
@@ -71,129 +70,111 @@ const CONFIRMDIALOG_INSTANCE = new InjectionToken('CONFIRMDIALOG_INSTANCE');
|
|
|
71
70
|
*/
|
|
72
71
|
class ConfirmDialog extends BaseComponent {
|
|
73
72
|
confirmationService = inject(ConfirmationService);
|
|
74
|
-
zone = inject(NgZone);
|
|
75
73
|
componentName = 'ConfirmDialog';
|
|
76
74
|
$pcConfirmDialog = inject(CONFIRMDIALOG_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
77
75
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
78
|
-
onAfterViewChecked() {
|
|
79
|
-
this.bindDirectiveInstance.setAttrs(this.ptm('host'));
|
|
80
|
-
}
|
|
81
76
|
/**
|
|
82
77
|
* Title text of the dialog.
|
|
83
78
|
* @group Props
|
|
84
79
|
*/
|
|
85
|
-
header
|
|
80
|
+
header = input(undefined, /* @ts-ignore */
|
|
81
|
+
...(ngDevMode ? [{ debugName: "header" }] : /* istanbul ignore next */ []));
|
|
86
82
|
/**
|
|
87
83
|
* Icon to display next to message.
|
|
88
84
|
* @group Props
|
|
89
85
|
*/
|
|
90
|
-
icon
|
|
86
|
+
icon = input(undefined, /* @ts-ignore */
|
|
87
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
91
88
|
/**
|
|
92
89
|
* Message of the confirmation.
|
|
93
90
|
* @group Props
|
|
94
91
|
*/
|
|
95
|
-
message
|
|
92
|
+
message = input(undefined, /* @ts-ignore */
|
|
93
|
+
...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
|
|
96
94
|
/**
|
|
97
95
|
* Inline style of the element.
|
|
98
96
|
* @group Props
|
|
99
97
|
*/
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
set style(value) {
|
|
104
|
-
this._style = value;
|
|
105
|
-
this.cd.markForCheck();
|
|
106
|
-
}
|
|
98
|
+
style = input(undefined, /* @ts-ignore */
|
|
99
|
+
...(ngDevMode ? [{ debugName: "style" }] : /* istanbul ignore next */ []));
|
|
107
100
|
/**
|
|
108
101
|
* Class of the element.
|
|
109
102
|
* @group Props
|
|
110
103
|
*/
|
|
111
|
-
styleClass
|
|
104
|
+
styleClass = input(undefined, /* @ts-ignore */
|
|
105
|
+
...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
112
106
|
/**
|
|
113
107
|
* Specify the CSS class(es) for styling the mask element
|
|
114
108
|
* @group Props
|
|
115
109
|
*/
|
|
116
|
-
maskStyleClass
|
|
110
|
+
maskStyleClass = input(undefined, /* @ts-ignore */
|
|
111
|
+
...(ngDevMode ? [{ debugName: "maskStyleClass" }] : /* istanbul ignore next */ []));
|
|
117
112
|
/**
|
|
118
113
|
* Icon of the accept button.
|
|
119
114
|
* @group Props
|
|
120
115
|
*/
|
|
121
|
-
acceptIcon
|
|
116
|
+
acceptIcon = input(undefined, /* @ts-ignore */
|
|
117
|
+
...(ngDevMode ? [{ debugName: "acceptIcon" }] : /* istanbul ignore next */ []));
|
|
122
118
|
/**
|
|
123
119
|
* Label of the accept button.
|
|
124
120
|
* @group Props
|
|
125
121
|
*/
|
|
126
|
-
acceptLabel
|
|
127
|
-
|
|
128
|
-
* Defines a string that labels the close button for accessibility.
|
|
129
|
-
* @group Props
|
|
130
|
-
*/
|
|
131
|
-
closeAriaLabel;
|
|
132
|
-
/**
|
|
133
|
-
* Defines a string that labels the accept button for accessibility.
|
|
134
|
-
* @group Props
|
|
135
|
-
*/
|
|
136
|
-
acceptAriaLabel;
|
|
122
|
+
acceptLabel = input(undefined, /* @ts-ignore */
|
|
123
|
+
...(ngDevMode ? [{ debugName: "acceptLabel" }] : /* istanbul ignore next */ []));
|
|
137
124
|
/**
|
|
138
125
|
* Visibility of the accept button.
|
|
139
126
|
* @group Props
|
|
140
127
|
*/
|
|
141
|
-
acceptVisible = true;
|
|
128
|
+
acceptVisible = input(true, { ...(ngDevMode ? { debugName: "acceptVisible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
142
129
|
/**
|
|
143
130
|
* Icon of the reject button.
|
|
144
131
|
* @group Props
|
|
145
132
|
*/
|
|
146
|
-
rejectIcon
|
|
133
|
+
rejectIcon = input(undefined, /* @ts-ignore */
|
|
134
|
+
...(ngDevMode ? [{ debugName: "rejectIcon" }] : /* istanbul ignore next */ []));
|
|
147
135
|
/**
|
|
148
136
|
* Label of the reject button.
|
|
149
137
|
* @group Props
|
|
150
138
|
*/
|
|
151
|
-
rejectLabel
|
|
152
|
-
|
|
153
|
-
* Defines a string that labels the reject button for accessibility.
|
|
154
|
-
* @group Props
|
|
155
|
-
*/
|
|
156
|
-
rejectAriaLabel;
|
|
139
|
+
rejectLabel = input(undefined, /* @ts-ignore */
|
|
140
|
+
...(ngDevMode ? [{ debugName: "rejectLabel" }] : /* istanbul ignore next */ []));
|
|
157
141
|
/**
|
|
158
142
|
* Visibility of the reject button.
|
|
159
143
|
* @group Props
|
|
160
144
|
*/
|
|
161
|
-
rejectVisible = true;
|
|
145
|
+
rejectVisible = input(true, { ...(ngDevMode ? { debugName: "rejectVisible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
162
146
|
/**
|
|
163
147
|
* Style class of the accept button.
|
|
164
148
|
* @group Props
|
|
165
149
|
*/
|
|
166
|
-
acceptButtonStyleClass
|
|
150
|
+
acceptButtonStyleClass = input(undefined, /* @ts-ignore */
|
|
151
|
+
...(ngDevMode ? [{ debugName: "acceptButtonStyleClass" }] : /* istanbul ignore next */ []));
|
|
167
152
|
/**
|
|
168
153
|
* Style class of the reject button.
|
|
169
154
|
* @group Props
|
|
170
155
|
*/
|
|
171
|
-
rejectButtonStyleClass
|
|
156
|
+
rejectButtonStyleClass = input(undefined, /* @ts-ignore */
|
|
157
|
+
...(ngDevMode ? [{ debugName: "rejectButtonStyleClass" }] : /* istanbul ignore next */ []));
|
|
172
158
|
/**
|
|
173
159
|
* Specifies if pressing escape key should hide the dialog.
|
|
174
160
|
* @group Props
|
|
175
161
|
*/
|
|
176
|
-
closeOnEscape = true;
|
|
162
|
+
closeOnEscape = input(true, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
177
163
|
/**
|
|
178
164
|
* Specifies if clicking the modal background should hide the dialog.
|
|
179
165
|
* @group Props
|
|
180
166
|
*/
|
|
181
|
-
dismissableMask;
|
|
167
|
+
dismissableMask = input(undefined, { ...(ngDevMode ? { debugName: "dismissableMask" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
182
168
|
/**
|
|
183
169
|
* Determines whether scrolling behavior should be blocked within the component.
|
|
184
170
|
* @group Props
|
|
185
171
|
*/
|
|
186
|
-
blockScroll = true;
|
|
187
|
-
/**
|
|
188
|
-
* When enabled dialog is displayed in RTL direction.
|
|
189
|
-
* @group Props
|
|
190
|
-
*/
|
|
191
|
-
rtl = false;
|
|
172
|
+
blockScroll = input(true, { ...(ngDevMode ? { debugName: "blockScroll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
192
173
|
/**
|
|
193
174
|
* Adds a close icon to the header to hide the dialog.
|
|
194
175
|
* @group Props
|
|
195
176
|
*/
|
|
196
|
-
closable = true;
|
|
177
|
+
closable = input(true, { ...(ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
197
178
|
/**
|
|
198
179
|
* Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
|
|
199
180
|
* @defaultValue 'body'
|
|
@@ -205,66 +186,47 @@ class ConfirmDialog extends BaseComponent {
|
|
|
205
186
|
* Optional key to match the key of confirm object, necessary to use when component tree has multiple confirm dialogs.
|
|
206
187
|
* @group Props
|
|
207
188
|
*/
|
|
208
|
-
key
|
|
189
|
+
key = input(undefined, /* @ts-ignore */
|
|
190
|
+
...(ngDevMode ? [{ debugName: "key" }] : /* istanbul ignore next */ []));
|
|
209
191
|
/**
|
|
210
192
|
* Whether to automatically manage layering.
|
|
211
193
|
* @group Props
|
|
212
194
|
*/
|
|
213
|
-
autoZIndex = true;
|
|
195
|
+
autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
214
196
|
/**
|
|
215
197
|
* Base zIndex value to use in layering.
|
|
216
198
|
* @group Props
|
|
217
199
|
*/
|
|
218
|
-
baseZIndex = 0;
|
|
219
|
-
/**
|
|
220
|
-
* Transition options of the animation.
|
|
221
|
-
* @group Props
|
|
222
|
-
*/
|
|
223
|
-
transitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';
|
|
224
|
-
/**
|
|
225
|
-
* When enabled, can only focus on elements inside the confirm dialog.
|
|
226
|
-
* @group Props
|
|
227
|
-
*/
|
|
228
|
-
focusTrap = true;
|
|
229
|
-
/**
|
|
230
|
-
* Element to receive the focus when the dialog gets visible.
|
|
231
|
-
* @group Props
|
|
232
|
-
*/
|
|
233
|
-
defaultFocus = 'accept';
|
|
200
|
+
baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
234
201
|
/**
|
|
235
202
|
* Object literal to define widths per screen size.
|
|
236
203
|
* @group Props
|
|
237
204
|
*/
|
|
238
|
-
breakpoints
|
|
205
|
+
breakpoints = input(/* @ts-ignore */
|
|
206
|
+
...(ngDevMode ? [undefined, { debugName: "breakpoints" }] : /* istanbul ignore next */ []));
|
|
239
207
|
/**
|
|
240
208
|
* Defines if background should be blocked when dialog is displayed.
|
|
241
209
|
* @group Props
|
|
242
210
|
*/
|
|
243
|
-
modal = true;
|
|
211
|
+
modal = input(true, { ...(ngDevMode ? { debugName: "modal" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
244
212
|
/**
|
|
245
213
|
* Current visible state as a boolean.
|
|
214
|
+
* Emits `visibleChange` with the new value when the dialog is shown or hidden.
|
|
246
215
|
* @group Props
|
|
247
216
|
*/
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
set visible(value) {
|
|
252
|
-
this._visible = value;
|
|
253
|
-
if (this._visible && !this.maskVisible) {
|
|
254
|
-
this.maskVisible = true;
|
|
255
|
-
}
|
|
256
|
-
this.cd.markForCheck();
|
|
257
|
-
}
|
|
217
|
+
visible = model(undefined, /* @ts-ignore */
|
|
218
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
258
219
|
/**
|
|
259
220
|
* Allows getting the position of the component.
|
|
260
221
|
* @group Props
|
|
261
222
|
*/
|
|
262
|
-
position = 'center'
|
|
223
|
+
position = input('center', /* @ts-ignore */
|
|
224
|
+
...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
263
225
|
/**
|
|
264
226
|
* Enables dragging to change the position using header.
|
|
265
227
|
* @group Props
|
|
266
228
|
*/
|
|
267
|
-
draggable = true;
|
|
229
|
+
draggable = input(true, { ...(ngDevMode ? { debugName: "draggable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
268
230
|
/**
|
|
269
231
|
* Callback to invoke when dialog is hidden.
|
|
270
232
|
* @param {ConfirmEventType} enum - Custom confirm event.
|
|
@@ -311,89 +273,69 @@ class ConfirmDialog extends BaseComponent {
|
|
|
311
273
|
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
312
274
|
$appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
|
|
313
275
|
...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
|
|
314
|
-
_headerTemplate
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
276
|
+
_headerTemplate = computed(() => this.templates()
|
|
277
|
+
.filter((item) => item.getType() === 'header')
|
|
278
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
279
|
+
...(ngDevMode ? [{ debugName: "_headerTemplate" }] : /* istanbul ignore next */ []));
|
|
280
|
+
_footerTemplate = computed(() => this.templates()
|
|
281
|
+
.filter((item) => item.getType() === 'footer')
|
|
282
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
283
|
+
...(ngDevMode ? [{ debugName: "_footerTemplate" }] : /* istanbul ignore next */ []));
|
|
284
|
+
_rejectIconTemplate = computed(() => this.templates()
|
|
285
|
+
.filter((item) => item.getType() === 'rejecticon')
|
|
286
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
287
|
+
...(ngDevMode ? [{ debugName: "_rejectIconTemplate" }] : /* istanbul ignore next */ []));
|
|
288
|
+
_acceptIconTemplate = computed(() => this.templates()
|
|
289
|
+
.filter((item) => item.getType() === 'accepticon')
|
|
290
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
291
|
+
...(ngDevMode ? [{ debugName: "_acceptIconTemplate" }] : /* istanbul ignore next */ []));
|
|
292
|
+
_messageTemplate = computed(() => this.templates()
|
|
293
|
+
.filter((item) => item.getType() === 'message')
|
|
294
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
295
|
+
...(ngDevMode ? [{ debugName: "_messageTemplate" }] : /* istanbul ignore next */ []));
|
|
296
|
+
_iconTemplate = computed(() => this.templates()
|
|
297
|
+
.filter((item) => item.getType() === 'icon')
|
|
298
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
299
|
+
...(ngDevMode ? [{ debugName: "_iconTemplate" }] : /* istanbul ignore next */ []));
|
|
300
|
+
_headlessTemplate = computed(() => this.templates()
|
|
301
|
+
.filter((item) => item.getType() === 'headless')
|
|
302
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
303
|
+
...(ngDevMode ? [{ debugName: "_headlessTemplate" }] : /* istanbul ignore next */ []));
|
|
304
|
+
confirmation = signal(undefined, /* @ts-ignore */
|
|
305
|
+
...(ngDevMode ? [{ debugName: "confirmation" }] : /* istanbul ignore next */ []));
|
|
328
306
|
subscription;
|
|
329
|
-
preWidth;
|
|
330
|
-
styleElement;
|
|
331
|
-
id = uuid('pn_id_');
|
|
332
|
-
ariaLabelledBy = this.getAriaLabelledBy();
|
|
333
307
|
translationSubscription;
|
|
334
308
|
constructor() {
|
|
335
309
|
super();
|
|
310
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('host')));
|
|
336
311
|
this.subscription = this.confirmationService.requireConfirmation$.subscribe((confirmation) => {
|
|
337
312
|
if (!confirmation) {
|
|
338
313
|
this.hide();
|
|
339
314
|
return;
|
|
340
315
|
}
|
|
341
|
-
if (confirmation.key === this.key) {
|
|
342
|
-
this.confirmation
|
|
343
|
-
if (
|
|
344
|
-
|
|
345
|
-
|
|
316
|
+
if (confirmation.key === this.key()) {
|
|
317
|
+
this.confirmation.set(confirmation);
|
|
318
|
+
if (confirmation.accept) {
|
|
319
|
+
confirmation.acceptEvent = new Subject();
|
|
320
|
+
confirmation.acceptEvent.subscribe(confirmation.accept);
|
|
346
321
|
}
|
|
347
|
-
if (
|
|
348
|
-
|
|
349
|
-
|
|
322
|
+
if (confirmation.reject) {
|
|
323
|
+
confirmation.rejectEvent = new Subject();
|
|
324
|
+
confirmation.rejectEvent.subscribe(confirmation.reject);
|
|
350
325
|
}
|
|
351
|
-
this.visible
|
|
326
|
+
this.visible.set(true);
|
|
352
327
|
}
|
|
353
328
|
});
|
|
354
329
|
}
|
|
355
330
|
onInit() {
|
|
356
|
-
if (this.breakpoints) {
|
|
357
|
-
this.createStyle();
|
|
358
|
-
}
|
|
359
331
|
this.translationSubscription = this.config.translationObserver.subscribe(() => {
|
|
360
|
-
if (this.visible) {
|
|
332
|
+
if (this.visible()) {
|
|
361
333
|
this.cd.markForCheck();
|
|
362
334
|
}
|
|
363
335
|
});
|
|
364
336
|
}
|
|
365
|
-
onAfterContentInit() {
|
|
366
|
-
this.templates()?.forEach((item) => {
|
|
367
|
-
switch (item.getType()) {
|
|
368
|
-
case 'header':
|
|
369
|
-
this._headerTemplate = item.template;
|
|
370
|
-
break;
|
|
371
|
-
case 'footer':
|
|
372
|
-
this._footerTemplate = item.template;
|
|
373
|
-
break;
|
|
374
|
-
case 'message':
|
|
375
|
-
this._messageTemplate = item.template;
|
|
376
|
-
break;
|
|
377
|
-
case 'icon':
|
|
378
|
-
this._iconTemplate = item.template;
|
|
379
|
-
break;
|
|
380
|
-
case 'rejecticon':
|
|
381
|
-
this._rejectIconTemplate = item.template;
|
|
382
|
-
break;
|
|
383
|
-
case 'accepticon':
|
|
384
|
-
this._acceptIconTemplate = item.template;
|
|
385
|
-
break;
|
|
386
|
-
case 'headless':
|
|
387
|
-
this._headlessTemplate = item.template;
|
|
388
|
-
break;
|
|
389
|
-
}
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
getAriaLabelledBy() {
|
|
393
|
-
return this.header !== null ? uuid('pn_id_') + '_header' : null;
|
|
394
|
-
}
|
|
395
337
|
option(name, k) {
|
|
396
|
-
const confirmation = this.confirmation ?? {};
|
|
338
|
+
const confirmation = this.confirmation() ?? {};
|
|
397
339
|
const source = Object.prototype.hasOwnProperty.call(confirmation, name) ? confirmation : this;
|
|
398
340
|
if (Object.prototype.hasOwnProperty.call(source, name)) {
|
|
399
341
|
const value = k ? source[name]?.[k] : source[name];
|
|
@@ -406,63 +348,21 @@ class ConfirmDialog extends BaseComponent {
|
|
|
406
348
|
const optionClass = this.option(opt);
|
|
407
349
|
return [cxClass, optionClass].filter(Boolean).join(' ');
|
|
408
350
|
}
|
|
409
|
-
getElementToFocus() {
|
|
410
|
-
if (!this.dialog?.el?.nativeElement)
|
|
411
|
-
return;
|
|
412
|
-
switch (this.option('defaultFocus')) {
|
|
413
|
-
case 'accept':
|
|
414
|
-
return findSingle(this.dialog.el.nativeElement, '.p-confirm-dialog-accept');
|
|
415
|
-
case 'reject':
|
|
416
|
-
return findSingle(this.dialog.el.nativeElement, '.p-confirm-dialog-reject');
|
|
417
|
-
case 'close':
|
|
418
|
-
return findSingle(this.dialog.el.nativeElement, '.p-dialog-header-close');
|
|
419
|
-
case 'none':
|
|
420
|
-
return null;
|
|
421
|
-
//backward compatibility
|
|
422
|
-
default:
|
|
423
|
-
return findSingle(this.dialog.el.nativeElement, '.p-confirm-dialog-accept');
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
createStyle() {
|
|
427
|
-
if (!this.styleElement) {
|
|
428
|
-
this.styleElement = this.document.createElement('style');
|
|
429
|
-
this.styleElement.type = 'text/css';
|
|
430
|
-
setAttribute(this.styleElement, 'nonce', this.config?.csp()?.nonce);
|
|
431
|
-
this.document.head.appendChild(this.styleElement);
|
|
432
|
-
let innerHTML = '';
|
|
433
|
-
for (let breakpoint in this.breakpoints) {
|
|
434
|
-
innerHTML += `
|
|
435
|
-
@media screen and (max-width: ${breakpoint}) {
|
|
436
|
-
.p-dialog[${this.id}] {
|
|
437
|
-
width: ${this.breakpoints[breakpoint]} !important;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
`;
|
|
441
|
-
}
|
|
442
|
-
this.styleElement.innerHTML = innerHTML;
|
|
443
|
-
setAttribute(this.styleElement, 'nonce', this.config?.csp()?.nonce);
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
351
|
close() {
|
|
447
|
-
|
|
448
|
-
|
|
352
|
+
const confirmation = this.confirmation();
|
|
353
|
+
if (confirmation?.rejectEvent) {
|
|
354
|
+
confirmation.rejectEvent.next(ConfirmEventType.CANCEL);
|
|
449
355
|
}
|
|
450
356
|
this.hide(ConfirmEventType.CANCEL);
|
|
451
357
|
}
|
|
452
358
|
hide(type) {
|
|
453
359
|
this.onHide.emit(type);
|
|
454
|
-
this.visible
|
|
360
|
+
this.visible.set(false);
|
|
455
361
|
// Unsubscribe from confirmation events when the dialogue is closed, because events are created when the dialogue is opened.
|
|
456
362
|
this.unsubscribeConfirmationEvents();
|
|
457
363
|
}
|
|
458
364
|
onDialogHide() {
|
|
459
|
-
this.confirmation
|
|
460
|
-
}
|
|
461
|
-
destroyStyle() {
|
|
462
|
-
if (this.styleElement) {
|
|
463
|
-
this.document.head.removeChild(this.styleElement);
|
|
464
|
-
this.styleElement = null;
|
|
465
|
-
}
|
|
365
|
+
this.confirmation.set(null);
|
|
466
366
|
}
|
|
467
367
|
onDestroy() {
|
|
468
368
|
this.subscription.unsubscribe();
|
|
@@ -471,32 +371,34 @@ class ConfirmDialog extends BaseComponent {
|
|
|
471
371
|
if (this.translationSubscription) {
|
|
472
372
|
this.translationSubscription.unsubscribe();
|
|
473
373
|
}
|
|
474
|
-
this.destroyStyle();
|
|
475
374
|
}
|
|
476
375
|
onVisibleChange(value) {
|
|
477
376
|
if (!value) {
|
|
478
377
|
this.close();
|
|
479
378
|
}
|
|
480
379
|
else {
|
|
481
|
-
this.visible
|
|
380
|
+
this.visible.set(value);
|
|
482
381
|
}
|
|
483
382
|
}
|
|
484
383
|
onAccept() {
|
|
485
|
-
|
|
486
|
-
|
|
384
|
+
const confirmation = this.confirmation();
|
|
385
|
+
if (confirmation && confirmation.acceptEvent) {
|
|
386
|
+
confirmation.acceptEvent.next(undefined);
|
|
487
387
|
}
|
|
488
388
|
this.hide(ConfirmEventType.ACCEPT);
|
|
489
389
|
}
|
|
490
390
|
onReject() {
|
|
491
|
-
|
|
492
|
-
|
|
391
|
+
const confirmation = this.confirmation();
|
|
392
|
+
if (confirmation && confirmation.rejectEvent) {
|
|
393
|
+
confirmation.rejectEvent.next(ConfirmEventType.REJECT);
|
|
493
394
|
}
|
|
494
395
|
this.hide(ConfirmEventType.REJECT);
|
|
495
396
|
}
|
|
496
397
|
unsubscribeConfirmationEvents() {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
398
|
+
const confirmation = this.confirmation();
|
|
399
|
+
if (confirmation) {
|
|
400
|
+
confirmation.acceptEvent?.unsubscribe();
|
|
401
|
+
confirmation.rejectEvent?.unsubscribe();
|
|
500
402
|
}
|
|
501
403
|
}
|
|
502
404
|
get acceptButtonLabel() {
|
|
@@ -512,37 +414,38 @@ class ConfirmDialog extends BaseComponent {
|
|
|
512
414
|
return this.option('rejectButtonProps');
|
|
513
415
|
}
|
|
514
416
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ConfirmDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
515
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ConfirmDialog, isStandalone: true, selector: "p-confirmDialog, p-confirmdialog, p-confirm-dialog", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal:
|
|
417
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ConfirmDialog, isStandalone: true, selector: "p-confirmDialog, p-confirmdialog, p-confirm-dialog", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", 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 }, acceptIcon: { classPropertyName: "acceptIcon", publicName: "acceptIcon", isSignal: true, isRequired: false, transformFunction: null }, acceptLabel: { classPropertyName: "acceptLabel", publicName: "acceptLabel", isSignal: true, isRequired: false, transformFunction: null }, acceptVisible: { classPropertyName: "acceptVisible", publicName: "acceptVisible", isSignal: true, isRequired: false, transformFunction: null }, rejectIcon: { classPropertyName: "rejectIcon", publicName: "rejectIcon", isSignal: true, isRequired: false, transformFunction: null }, rejectLabel: { classPropertyName: "rejectLabel", publicName: "rejectLabel", isSignal: true, isRequired: false, transformFunction: null }, rejectVisible: { classPropertyName: "rejectVisible", publicName: "rejectVisible", isSignal: true, isRequired: false, transformFunction: null }, acceptButtonStyleClass: { classPropertyName: "acceptButtonStyleClass", publicName: "acceptButtonStyleClass", isSignal: true, isRequired: false, transformFunction: null }, rejectButtonStyleClass: { classPropertyName: "rejectButtonStyleClass", publicName: "rejectButtonStyleClass", 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 }, blockScroll: { classPropertyName: "blockScroll", publicName: "blockScroll", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", 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 }, breakpoints: { classPropertyName: "breakpoints", publicName: "breakpoints", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", onHide: "onHide" }, providers: [ConfirmDialogStyle, { provide: CONFIRMDIALOG_INSTANCE, useExisting: ConfirmDialog }, { provide: PARENT_INSTANCE, useExisting: ConfirmDialog }], queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "rejectIconTemplate", first: true, predicate: ["rejecticon"], isSignal: true }, { propertyName: "acceptIconTemplate", first: true, predicate: ["accepticon"], isSignal: true }, { propertyName: "messageTemplate", first: true, predicate: ["message"], isSignal: true }, { propertyName: "iconTemplate", first: true, predicate: ["icon"], isSignal: true }, { propertyName: "headlessTemplate", first: true, predicate: ["headless"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
516
418
|
<p-dialog
|
|
517
|
-
[pt]="pt"
|
|
419
|
+
[pt]="pt()"
|
|
518
420
|
#dialog
|
|
519
|
-
[visible]="visible"
|
|
421
|
+
[visible]="visible()"
|
|
520
422
|
(visibleChange)="onVisibleChange($event)"
|
|
521
423
|
role="alertdialog"
|
|
522
424
|
[closable]="option('closable')"
|
|
523
|
-
[styleClass]="cn(cx('root'), styleClass)"
|
|
425
|
+
[styleClass]="cn(cx('root'), styleClass())"
|
|
524
426
|
[modal]="option('modal')"
|
|
525
427
|
[header]="option('header')"
|
|
526
428
|
[closeOnEscape]="option('closeOnEscape')"
|
|
527
429
|
[blockScroll]="option('blockScroll')"
|
|
528
430
|
[appendTo]="$appendTo()"
|
|
529
431
|
[position]="option('position')"
|
|
530
|
-
[style]="style"
|
|
432
|
+
[style]="style()"
|
|
433
|
+
[breakpoints]="breakpoints()"
|
|
531
434
|
[dismissableMask]="option('dismissableMask')"
|
|
532
|
-
[draggable]="draggable"
|
|
533
|
-
[baseZIndex]="baseZIndex"
|
|
534
|
-
[autoZIndex]="autoZIndex"
|
|
535
|
-
[maskStyleClass]="cn(cx('mask'), maskStyleClass)"
|
|
435
|
+
[draggable]="draggable()"
|
|
436
|
+
[baseZIndex]="baseZIndex()"
|
|
437
|
+
[autoZIndex]="autoZIndex()"
|
|
438
|
+
[maskStyleClass]="cn(cx('mask'), maskStyleClass())"
|
|
536
439
|
[unstyled]="unstyled()"
|
|
537
440
|
(onHide)="onDialogHide()"
|
|
538
441
|
>
|
|
539
|
-
@if (headlessTemplate() || _headlessTemplate) {
|
|
442
|
+
@if (headlessTemplate() || _headlessTemplate()) {
|
|
540
443
|
<ng-template #headless>
|
|
541
444
|
<ng-container
|
|
542
445
|
*ngTemplateOutlet="
|
|
543
|
-
headlessTemplate() || _headlessTemplate;
|
|
446
|
+
headlessTemplate() || _headlessTemplate();
|
|
544
447
|
context: {
|
|
545
|
-
$implicit: confirmation,
|
|
448
|
+
$implicit: confirmation(),
|
|
546
449
|
onAccept: onAccept.bind(this),
|
|
547
450
|
onReject: onReject.bind(this)
|
|
548
451
|
}
|
|
@@ -550,31 +453,31 @@ class ConfirmDialog extends BaseComponent {
|
|
|
550
453
|
></ng-container>
|
|
551
454
|
</ng-template>
|
|
552
455
|
} @else {
|
|
553
|
-
@if (headerTemplate() || _headerTemplate) {
|
|
456
|
+
@if (headerTemplate() || _headerTemplate()) {
|
|
554
457
|
<ng-template #header>
|
|
555
|
-
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate"></ng-container>
|
|
458
|
+
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
|
|
556
459
|
</ng-template>
|
|
557
460
|
}
|
|
558
461
|
|
|
559
462
|
<ng-template #content>
|
|
560
|
-
@if (iconTemplate() || _iconTemplate) {
|
|
561
|
-
<ng-template *ngTemplateOutlet="iconTemplate() || _iconTemplate"></ng-template>
|
|
562
|
-
} @else if (!iconTemplate() && !_iconTemplate && !_messageTemplate && !messageTemplate()) {
|
|
463
|
+
@if (iconTemplate() || _iconTemplate()) {
|
|
464
|
+
<ng-template *ngTemplateOutlet="iconTemplate() || _iconTemplate()"></ng-template>
|
|
465
|
+
} @else if (!iconTemplate() && !_iconTemplate() && !_messageTemplate() && !messageTemplate()) {
|
|
563
466
|
<i [ngClass]="cx('icon')" [class]="option('icon')" [pBind]="ptm('icon')" *ngIf="option('icon')"></i>
|
|
564
467
|
}
|
|
565
|
-
@if (messageTemplate() || _messageTemplate) {
|
|
566
|
-
<ng-template *ngTemplateOutlet="messageTemplate() || _messageTemplate; context: { $implicit: confirmation }"></ng-template>
|
|
468
|
+
@if (messageTemplate() || _messageTemplate()) {
|
|
469
|
+
<ng-template *ngTemplateOutlet="messageTemplate() || _messageTemplate(); context: { $implicit: confirmation() }"></ng-template>
|
|
567
470
|
} @else {
|
|
568
471
|
<span [class]="cx('message')" [pBind]="ptm('message')" [innerHTML]="option('message')"> </span>
|
|
569
472
|
}
|
|
570
473
|
</ng-template>
|
|
571
474
|
}
|
|
572
475
|
<ng-template #footer>
|
|
573
|
-
@if (footerTemplate() || _footerTemplate) {
|
|
476
|
+
@if (footerTemplate() || _footerTemplate()) {
|
|
574
477
|
<ng-content select="p-footer"></ng-content>
|
|
575
|
-
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate"></ng-container>
|
|
478
|
+
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
|
|
576
479
|
}
|
|
577
|
-
@if (!footerTemplate() && !_footerTemplate) {
|
|
480
|
+
@if (!footerTemplate() && !_footerTemplate()) {
|
|
578
481
|
<p-button
|
|
579
482
|
[pt]="ptm('pcRejectButton')"
|
|
580
483
|
*ngIf="option('rejectVisible')"
|
|
@@ -586,10 +489,10 @@ class ConfirmDialog extends BaseComponent {
|
|
|
586
489
|
[unstyled]="unstyled()"
|
|
587
490
|
>
|
|
588
491
|
<ng-template #icon>
|
|
589
|
-
@if (option('rejectIcon') && !rejectIconTemplate() && !_rejectIconTemplate) {
|
|
492
|
+
@if (option('rejectIcon') && !rejectIconTemplate() && !_rejectIconTemplate()) {
|
|
590
493
|
<i *ngIf="option('rejectIcon')" [class]="option('rejectIcon')" [pBind]="ptm('pcRejectButton')['icon']"></i>
|
|
591
494
|
}
|
|
592
|
-
<ng-template *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate"></ng-template>
|
|
495
|
+
<ng-template *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate()"></ng-template>
|
|
593
496
|
</ng-template>
|
|
594
497
|
</p-button>
|
|
595
498
|
<p-button
|
|
@@ -603,54 +506,54 @@ class ConfirmDialog extends BaseComponent {
|
|
|
603
506
|
[unstyled]="unstyled()"
|
|
604
507
|
>
|
|
605
508
|
<ng-template #icon>
|
|
606
|
-
@if (option('acceptIcon') && !_acceptIconTemplate && !acceptIconTemplate()) {
|
|
509
|
+
@if (option('acceptIcon') && !_acceptIconTemplate() && !acceptIconTemplate()) {
|
|
607
510
|
<i *ngIf="option('acceptIcon')" [class]="option('acceptIcon')" [pBind]="ptm('pcAcceptButton')['icon']"></i>
|
|
608
511
|
}
|
|
609
|
-
<ng-template *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate"></ng-template>
|
|
512
|
+
<ng-template *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate()"></ng-template>
|
|
610
513
|
</ng-template>
|
|
611
514
|
</p-button>
|
|
612
515
|
}
|
|
613
516
|
</ng-template>
|
|
614
517
|
</p-dialog>
|
|
615
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "
|
|
518
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: "component", type: Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "maskMotionOptions", "motionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "ariaLabelledBy", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["visibleChange", "onShow", "onHide", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
616
519
|
}
|
|
617
520
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ConfirmDialog, decorators: [{
|
|
618
521
|
type: Component,
|
|
619
522
|
args: [{
|
|
620
523
|
selector: 'p-confirmDialog, p-confirmdialog, p-confirm-dialog',
|
|
621
|
-
standalone: true,
|
|
622
524
|
imports: [CommonModule, Button, Dialog, SharedModule, Bind],
|
|
623
525
|
template: `
|
|
624
526
|
<p-dialog
|
|
625
|
-
[pt]="pt"
|
|
527
|
+
[pt]="pt()"
|
|
626
528
|
#dialog
|
|
627
|
-
[visible]="visible"
|
|
529
|
+
[visible]="visible()"
|
|
628
530
|
(visibleChange)="onVisibleChange($event)"
|
|
629
531
|
role="alertdialog"
|
|
630
532
|
[closable]="option('closable')"
|
|
631
|
-
[styleClass]="cn(cx('root'), styleClass)"
|
|
533
|
+
[styleClass]="cn(cx('root'), styleClass())"
|
|
632
534
|
[modal]="option('modal')"
|
|
633
535
|
[header]="option('header')"
|
|
634
536
|
[closeOnEscape]="option('closeOnEscape')"
|
|
635
537
|
[blockScroll]="option('blockScroll')"
|
|
636
538
|
[appendTo]="$appendTo()"
|
|
637
539
|
[position]="option('position')"
|
|
638
|
-
[style]="style"
|
|
540
|
+
[style]="style()"
|
|
541
|
+
[breakpoints]="breakpoints()"
|
|
639
542
|
[dismissableMask]="option('dismissableMask')"
|
|
640
|
-
[draggable]="draggable"
|
|
641
|
-
[baseZIndex]="baseZIndex"
|
|
642
|
-
[autoZIndex]="autoZIndex"
|
|
643
|
-
[maskStyleClass]="cn(cx('mask'), maskStyleClass)"
|
|
543
|
+
[draggable]="draggable()"
|
|
544
|
+
[baseZIndex]="baseZIndex()"
|
|
545
|
+
[autoZIndex]="autoZIndex()"
|
|
546
|
+
[maskStyleClass]="cn(cx('mask'), maskStyleClass())"
|
|
644
547
|
[unstyled]="unstyled()"
|
|
645
548
|
(onHide)="onDialogHide()"
|
|
646
549
|
>
|
|
647
|
-
@if (headlessTemplate() || _headlessTemplate) {
|
|
550
|
+
@if (headlessTemplate() || _headlessTemplate()) {
|
|
648
551
|
<ng-template #headless>
|
|
649
552
|
<ng-container
|
|
650
553
|
*ngTemplateOutlet="
|
|
651
|
-
headlessTemplate() || _headlessTemplate;
|
|
554
|
+
headlessTemplate() || _headlessTemplate();
|
|
652
555
|
context: {
|
|
653
|
-
$implicit: confirmation,
|
|
556
|
+
$implicit: confirmation(),
|
|
654
557
|
onAccept: onAccept.bind(this),
|
|
655
558
|
onReject: onReject.bind(this)
|
|
656
559
|
}
|
|
@@ -658,31 +561,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
658
561
|
></ng-container>
|
|
659
562
|
</ng-template>
|
|
660
563
|
} @else {
|
|
661
|
-
@if (headerTemplate() || _headerTemplate) {
|
|
564
|
+
@if (headerTemplate() || _headerTemplate()) {
|
|
662
565
|
<ng-template #header>
|
|
663
|
-
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate"></ng-container>
|
|
566
|
+
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
|
|
664
567
|
</ng-template>
|
|
665
568
|
}
|
|
666
569
|
|
|
667
570
|
<ng-template #content>
|
|
668
|
-
@if (iconTemplate() || _iconTemplate) {
|
|
669
|
-
<ng-template *ngTemplateOutlet="iconTemplate() || _iconTemplate"></ng-template>
|
|
670
|
-
} @else if (!iconTemplate() && !_iconTemplate && !_messageTemplate && !messageTemplate()) {
|
|
571
|
+
@if (iconTemplate() || _iconTemplate()) {
|
|
572
|
+
<ng-template *ngTemplateOutlet="iconTemplate() || _iconTemplate()"></ng-template>
|
|
573
|
+
} @else if (!iconTemplate() && !_iconTemplate() && !_messageTemplate() && !messageTemplate()) {
|
|
671
574
|
<i [ngClass]="cx('icon')" [class]="option('icon')" [pBind]="ptm('icon')" *ngIf="option('icon')"></i>
|
|
672
575
|
}
|
|
673
|
-
@if (messageTemplate() || _messageTemplate) {
|
|
674
|
-
<ng-template *ngTemplateOutlet="messageTemplate() || _messageTemplate; context: { $implicit: confirmation }"></ng-template>
|
|
576
|
+
@if (messageTemplate() || _messageTemplate()) {
|
|
577
|
+
<ng-template *ngTemplateOutlet="messageTemplate() || _messageTemplate(); context: { $implicit: confirmation() }"></ng-template>
|
|
675
578
|
} @else {
|
|
676
579
|
<span [class]="cx('message')" [pBind]="ptm('message')" [innerHTML]="option('message')"> </span>
|
|
677
580
|
}
|
|
678
581
|
</ng-template>
|
|
679
582
|
}
|
|
680
583
|
<ng-template #footer>
|
|
681
|
-
@if (footerTemplate() || _footerTemplate) {
|
|
584
|
+
@if (footerTemplate() || _footerTemplate()) {
|
|
682
585
|
<ng-content select="p-footer"></ng-content>
|
|
683
|
-
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate"></ng-container>
|
|
586
|
+
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
|
|
684
587
|
}
|
|
685
|
-
@if (!footerTemplate() && !_footerTemplate) {
|
|
588
|
+
@if (!footerTemplate() && !_footerTemplate()) {
|
|
686
589
|
<p-button
|
|
687
590
|
[pt]="ptm('pcRejectButton')"
|
|
688
591
|
*ngIf="option('rejectVisible')"
|
|
@@ -694,10 +597,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
694
597
|
[unstyled]="unstyled()"
|
|
695
598
|
>
|
|
696
599
|
<ng-template #icon>
|
|
697
|
-
@if (option('rejectIcon') && !rejectIconTemplate() && !_rejectIconTemplate) {
|
|
600
|
+
@if (option('rejectIcon') && !rejectIconTemplate() && !_rejectIconTemplate()) {
|
|
698
601
|
<i *ngIf="option('rejectIcon')" [class]="option('rejectIcon')" [pBind]="ptm('pcRejectButton')['icon']"></i>
|
|
699
602
|
}
|
|
700
|
-
<ng-template *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate"></ng-template>
|
|
603
|
+
<ng-template *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate()"></ng-template>
|
|
701
604
|
</ng-template>
|
|
702
605
|
</p-button>
|
|
703
606
|
<p-button
|
|
@@ -711,10 +614,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
711
614
|
[unstyled]="unstyled()"
|
|
712
615
|
>
|
|
713
616
|
<ng-template #icon>
|
|
714
|
-
@if (option('acceptIcon') && !_acceptIconTemplate && !acceptIconTemplate()) {
|
|
617
|
+
@if (option('acceptIcon') && !_acceptIconTemplate() && !acceptIconTemplate()) {
|
|
715
618
|
<i *ngIf="option('acceptIcon')" [class]="option('acceptIcon')" [pBind]="ptm('pcAcceptButton')['icon']"></i>
|
|
716
619
|
}
|
|
717
|
-
<ng-template *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate"></ng-template>
|
|
620
|
+
<ng-template *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate()"></ng-template>
|
|
718
621
|
</ng-template>
|
|
719
622
|
</p-button>
|
|
720
623
|
}
|
|
@@ -726,85 +629,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
726
629
|
providers: [ConfirmDialogStyle, { provide: CONFIRMDIALOG_INSTANCE, useExisting: ConfirmDialog }, { provide: PARENT_INSTANCE, useExisting: ConfirmDialog }],
|
|
727
630
|
hostDirectives: [Bind]
|
|
728
631
|
}]
|
|
729
|
-
}], ctorParameters: () => [], propDecorators: { header: [{
|
|
730
|
-
type: Input
|
|
731
|
-
}], icon: [{
|
|
732
|
-
type: Input
|
|
733
|
-
}], message: [{
|
|
734
|
-
type: Input
|
|
735
|
-
}], style: [{
|
|
736
|
-
type: Input
|
|
737
|
-
}], styleClass: [{
|
|
738
|
-
type: Input
|
|
739
|
-
}], maskStyleClass: [{
|
|
740
|
-
type: Input
|
|
741
|
-
}], acceptIcon: [{
|
|
742
|
-
type: Input
|
|
743
|
-
}], acceptLabel: [{
|
|
744
|
-
type: Input
|
|
745
|
-
}], closeAriaLabel: [{
|
|
746
|
-
type: Input
|
|
747
|
-
}], acceptAriaLabel: [{
|
|
748
|
-
type: Input
|
|
749
|
-
}], acceptVisible: [{
|
|
750
|
-
type: Input,
|
|
751
|
-
args: [{ transform: booleanAttribute }]
|
|
752
|
-
}], rejectIcon: [{
|
|
753
|
-
type: Input
|
|
754
|
-
}], rejectLabel: [{
|
|
755
|
-
type: Input
|
|
756
|
-
}], rejectAriaLabel: [{
|
|
757
|
-
type: Input
|
|
758
|
-
}], rejectVisible: [{
|
|
759
|
-
type: Input,
|
|
760
|
-
args: [{ transform: booleanAttribute }]
|
|
761
|
-
}], acceptButtonStyleClass: [{
|
|
762
|
-
type: Input
|
|
763
|
-
}], rejectButtonStyleClass: [{
|
|
764
|
-
type: Input
|
|
765
|
-
}], closeOnEscape: [{
|
|
766
|
-
type: Input,
|
|
767
|
-
args: [{ transform: booleanAttribute }]
|
|
768
|
-
}], dismissableMask: [{
|
|
769
|
-
type: Input,
|
|
770
|
-
args: [{ transform: booleanAttribute }]
|
|
771
|
-
}], blockScroll: [{
|
|
772
|
-
type: Input,
|
|
773
|
-
args: [{ transform: booleanAttribute }]
|
|
774
|
-
}], rtl: [{
|
|
775
|
-
type: Input,
|
|
776
|
-
args: [{ transform: booleanAttribute }]
|
|
777
|
-
}], closable: [{
|
|
778
|
-
type: Input,
|
|
779
|
-
args: [{ transform: booleanAttribute }]
|
|
780
|
-
}], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], key: [{
|
|
781
|
-
type: Input
|
|
782
|
-
}], autoZIndex: [{
|
|
783
|
-
type: Input,
|
|
784
|
-
args: [{ transform: booleanAttribute }]
|
|
785
|
-
}], baseZIndex: [{
|
|
786
|
-
type: Input,
|
|
787
|
-
args: [{ transform: numberAttribute }]
|
|
788
|
-
}], transitionOptions: [{
|
|
789
|
-
type: Input
|
|
790
|
-
}], focusTrap: [{
|
|
791
|
-
type: Input,
|
|
792
|
-
args: [{ transform: booleanAttribute }]
|
|
793
|
-
}], defaultFocus: [{
|
|
794
|
-
type: Input
|
|
795
|
-
}], breakpoints: [{
|
|
796
|
-
type: Input
|
|
797
|
-
}], modal: [{
|
|
798
|
-
type: Input,
|
|
799
|
-
args: [{ transform: booleanAttribute }]
|
|
800
|
-
}], visible: [{
|
|
801
|
-
type: Input
|
|
802
|
-
}], position: [{
|
|
803
|
-
type: Input
|
|
804
|
-
}], draggable: [{
|
|
805
|
-
type: Input,
|
|
806
|
-
args: [{ transform: booleanAttribute }]
|
|
807
|
-
}], onHide: [{ type: i0.Output, args: ["onHide"] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], rejectIconTemplate: [{ type: i0.ContentChild, args: ['rejecticon', { ...{ descendants: false }, isSignal: true }] }], acceptIconTemplate: [{ type: i0.ContentChild, args: ['accepticon', { ...{ descendants: false }, isSignal: true }] }], messageTemplate: [{ type: i0.ContentChild, args: ['message', { ...{ descendants: false }, isSignal: true }] }], iconTemplate: [{ type: i0.ContentChild, args: ['icon', { ...{ descendants: false }, isSignal: true }] }], headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
632
|
+
}], ctorParameters: () => [], propDecorators: { header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], maskStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskStyleClass", required: false }] }], acceptIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "acceptIcon", required: false }] }], acceptLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "acceptLabel", required: false }] }], acceptVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "acceptVisible", required: false }] }], rejectIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "rejectIcon", required: false }] }], rejectLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rejectLabel", required: false }] }], rejectVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "rejectVisible", required: false }] }], acceptButtonStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "acceptButtonStyleClass", required: false }] }], rejectButtonStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "rejectButtonStyleClass", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], dismissableMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissableMask", required: false }] }], blockScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "blockScroll", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], breakpoints: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoints", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], draggable: [{ type: i0.Input, args: [{ isSignal: true, alias: "draggable", required: false }] }], onHide: [{ type: i0.Output, args: ["onHide"] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], rejectIconTemplate: [{ type: i0.ContentChild, args: ['rejecticon', { ...{ descendants: false }, isSignal: true }] }], acceptIconTemplate: [{ type: i0.ContentChild, args: ['accepticon', { ...{ descendants: false }, isSignal: true }] }], messageTemplate: [{ type: i0.ContentChild, args: ['message', { ...{ descendants: false }, isSignal: true }] }], iconTemplate: [{ type: i0.ContentChild, args: ['icon', { ...{ descendants: false }, isSignal: true }] }], headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
808
633
|
class ConfirmDialogModule {
|
|
809
634
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ConfirmDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
810
635
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: ConfirmDialogModule, imports: [ConfirmDialog, SharedModule], exports: [ConfirmDialog, SharedModule] });
|