@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
|
@@ -2,7 +2,8 @@ export * from '@exhaustive-ui/core/types/confirmpopup';
|
|
|
2
2
|
import * as i2 from '@angular/common';
|
|
3
3
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable, InjectionToken, inject, ElementRef, Renderer2,
|
|
5
|
+
import { Injectable, InjectionToken, inject, ElementRef, Renderer2, input, booleanAttribute, numberAttribute, signal, computed, contentChild, viewChild, afterEveryRender, effect, untracked, contentChildren, isSignal, HostListener, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
6
7
|
import { findSingle, absolutePosition, getOffset, addClass, appendChild, focus, isIOS, isTouchDevice } from '@exhaustive-ui/utils';
|
|
7
8
|
import { ConfirmationService, OverlayService, PrimeTemplate, TranslationKeys, SharedModule } from '@exhaustive-ui/core/api';
|
|
8
9
|
import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
|
|
@@ -88,57 +89,45 @@ class ConfirmPopup extends BaseComponent {
|
|
|
88
89
|
el = inject(ElementRef);
|
|
89
90
|
confirmationService = inject(ConfirmationService);
|
|
90
91
|
renderer = inject(Renderer2);
|
|
91
|
-
cd = inject(ChangeDetectorRef);
|
|
92
92
|
overlayService = inject(OverlayService);
|
|
93
93
|
document = inject(DOCUMENT);
|
|
94
94
|
componentName = 'ConfirmPopup';
|
|
95
95
|
$pcConfirmPopup = inject(CONFIRMPOPUP_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
96
96
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
97
|
-
onAfterViewChecked() {
|
|
98
|
-
this.bindDirectiveInstance.setAttrs(this.ptm('host'));
|
|
99
|
-
}
|
|
100
97
|
/**
|
|
101
98
|
* Optional key to match the key of confirm object, necessary to use when component tree has multiple confirm dialogs.
|
|
102
99
|
* @group Props
|
|
103
100
|
*/
|
|
104
|
-
key
|
|
101
|
+
key = input(/* @ts-ignore */
|
|
102
|
+
...(ngDevMode ? [undefined, { debugName: "key" }] : /* istanbul ignore next */ []));
|
|
105
103
|
/**
|
|
106
104
|
* Element to receive the focus when the popup gets visible, valid values are "accept", "reject", and "none".
|
|
107
105
|
* @group Props
|
|
108
106
|
*/
|
|
109
|
-
defaultFocus = 'accept'
|
|
110
|
-
|
|
111
|
-
* Transition options of the show animation.
|
|
112
|
-
* @group Props
|
|
113
|
-
* @deprecated since v21.0.0. Use `motionOptions` instead.
|
|
114
|
-
*/
|
|
115
|
-
showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
|
|
116
|
-
/**
|
|
117
|
-
* Transition options of the hide animation.
|
|
118
|
-
* @group Props
|
|
119
|
-
* @deprecated since v21.0.0. Use `motionOptions` instead.
|
|
120
|
-
*/
|
|
121
|
-
hideTransitionOptions = '.1s linear';
|
|
107
|
+
defaultFocus = input('accept', /* @ts-ignore */
|
|
108
|
+
...(ngDevMode ? [{ debugName: "defaultFocus" }] : /* istanbul ignore next */ []));
|
|
122
109
|
/**
|
|
123
110
|
* Whether to automatically manage layering.
|
|
124
111
|
* @group Props
|
|
125
112
|
*/
|
|
126
|
-
autoZIndex = true;
|
|
113
|
+
autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
127
114
|
/**
|
|
128
115
|
* Base zIndex value to use in layering.
|
|
129
116
|
* @group Props
|
|
130
117
|
*/
|
|
131
|
-
baseZIndex = 0;
|
|
118
|
+
baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
132
119
|
/**
|
|
133
120
|
* Inline style of the component.
|
|
134
121
|
* @group Props
|
|
135
122
|
*/
|
|
136
|
-
style
|
|
123
|
+
style = input(/* @ts-ignore */
|
|
124
|
+
...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
|
|
137
125
|
/**
|
|
138
126
|
* Style class of the component.
|
|
139
127
|
* @group Props
|
|
140
128
|
*/
|
|
141
|
-
styleClass
|
|
129
|
+
styleClass = input(/* @ts-ignore */
|
|
130
|
+
...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
142
131
|
/**
|
|
143
132
|
* Defines if the component is visible.
|
|
144
133
|
* @group Props
|
|
@@ -173,11 +162,14 @@ class ConfirmPopup extends BaseComponent {
|
|
|
173
162
|
...(ngDevMode ? [{ debugName: "appendTo" }] : /* istanbul ignore next */ []));
|
|
174
163
|
$appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
|
|
175
164
|
...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
|
|
176
|
-
container
|
|
177
|
-
|
|
178
|
-
confirmation
|
|
179
|
-
|
|
180
|
-
|
|
165
|
+
container = signal(undefined, /* @ts-ignore */
|
|
166
|
+
...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
|
|
167
|
+
confirmation = signal(undefined, /* @ts-ignore */
|
|
168
|
+
...(ngDevMode ? [{ debugName: "confirmation" }] : /* istanbul ignore next */ []));
|
|
169
|
+
autoFocusAccept = signal(false, /* @ts-ignore */
|
|
170
|
+
...(ngDevMode ? [{ debugName: "autoFocusAccept" }] : /* istanbul ignore next */ []));
|
|
171
|
+
autoFocusReject = signal(false, /* @ts-ignore */
|
|
172
|
+
...(ngDevMode ? [{ debugName: "autoFocusReject" }] : /* istanbul ignore next */ []));
|
|
181
173
|
/**
|
|
182
174
|
* Custom content template.
|
|
183
175
|
* @group Templates
|
|
@@ -200,19 +192,34 @@ class ConfirmPopup extends BaseComponent {
|
|
|
200
192
|
headlessTemplate = contentChild('headless', { ...(ngDevMode ? { debugName: "headlessTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
201
193
|
acceptButtonViewChild = viewChild('acceptButton', { ...(ngDevMode ? { debugName: "acceptButtonViewChild" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
202
194
|
rejectButtonViewChild = viewChild('rejectButton', { ...(ngDevMode ? { debugName: "rejectButtonViewChild" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
203
|
-
_contentTemplate
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
195
|
+
_contentTemplate = computed(() => this.templates()
|
|
196
|
+
.filter((item) => item.getType() === 'content')
|
|
197
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
198
|
+
...(ngDevMode ? [{ debugName: "_contentTemplate" }] : /* istanbul ignore next */ []));
|
|
199
|
+
_acceptIconTemplate = computed(() => this.templates()
|
|
200
|
+
.filter((item) => item.getType() === 'accepticon')
|
|
201
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
202
|
+
...(ngDevMode ? [{ debugName: "_acceptIconTemplate" }] : /* istanbul ignore next */ []));
|
|
203
|
+
_rejectIconTemplate = computed(() => this.templates()
|
|
204
|
+
.filter((item) => item.getType() === 'rejecticon')
|
|
205
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
206
|
+
...(ngDevMode ? [{ debugName: "_rejectIconTemplate" }] : /* istanbul ignore next */ []));
|
|
207
|
+
_headlessTemplate = computed(() => this.templates()
|
|
208
|
+
.filter((item) => item.getType() === 'headless')
|
|
209
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
210
|
+
...(ngDevMode ? [{ debugName: "_headlessTemplate" }] : /* istanbul ignore next */ []));
|
|
211
|
+
documentClickListener = signal(undefined, /* @ts-ignore */
|
|
212
|
+
...(ngDevMode ? [{ debugName: "documentClickListener" }] : /* istanbul ignore next */ []));
|
|
213
|
+
documentResizeListener = signal(undefined, /* @ts-ignore */
|
|
214
|
+
...(ngDevMode ? [{ debugName: "documentResizeListener" }] : /* istanbul ignore next */ []));
|
|
215
|
+
scrollHandler = signal(undefined, /* @ts-ignore */
|
|
216
|
+
...(ngDevMode ? [{ debugName: "scrollHandler" }] : /* istanbul ignore next */ []));
|
|
217
|
+
window = this.document.defaultView;
|
|
211
218
|
_componentStyle = inject(ConfirmPopupStyle);
|
|
212
219
|
constructor() {
|
|
213
220
|
super();
|
|
214
|
-
|
|
215
|
-
this.
|
|
221
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('host')));
|
|
222
|
+
this.confirmationService.requireConfirmation$.pipe(takeUntilDestroyed()).subscribe((confirmation) => {
|
|
216
223
|
if (!confirmation) {
|
|
217
224
|
this.hide();
|
|
218
225
|
return;
|
|
@@ -220,19 +227,18 @@ class ConfirmPopup extends BaseComponent {
|
|
|
220
227
|
if (this.computedVisible()) {
|
|
221
228
|
requestAnimationFrame(() => {
|
|
222
229
|
this.alignOverlay();
|
|
223
|
-
this.cd.markForCheck();
|
|
224
230
|
});
|
|
225
231
|
}
|
|
226
|
-
if (confirmation.key === this.key) {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
this.confirmation.acceptEvent.subscribe(this.confirmation.accept);
|
|
232
|
+
if (confirmation.key === this.key()) {
|
|
233
|
+
if (confirmation.accept) {
|
|
234
|
+
confirmation.acceptEvent = new Subject();
|
|
235
|
+
confirmation.acceptEvent.subscribe(confirmation.accept);
|
|
231
236
|
}
|
|
232
|
-
if (
|
|
233
|
-
|
|
234
|
-
|
|
237
|
+
if (confirmation.reject) {
|
|
238
|
+
confirmation.rejectEvent = new Subject();
|
|
239
|
+
confirmation.rejectEvent.subscribe(confirmation.reject);
|
|
235
240
|
}
|
|
241
|
+
this.confirmation.set(confirmation);
|
|
236
242
|
this._visible.set(true);
|
|
237
243
|
}
|
|
238
244
|
});
|
|
@@ -248,47 +254,31 @@ class ConfirmPopup extends BaseComponent {
|
|
|
248
254
|
}
|
|
249
255
|
templates = contentChildren(PrimeTemplate, /* @ts-ignore */
|
|
250
256
|
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
251
|
-
onAfterContentInit() {
|
|
252
|
-
this.templates()?.forEach((item) => {
|
|
253
|
-
switch (item.getType()) {
|
|
254
|
-
case 'content':
|
|
255
|
-
this._contentTemplate = item.template;
|
|
256
|
-
break;
|
|
257
|
-
case 'rejecticon':
|
|
258
|
-
this._rejectIconTemplate = item.template;
|
|
259
|
-
break;
|
|
260
|
-
case 'accepticon':
|
|
261
|
-
this._acceptIconTemplate = item.template;
|
|
262
|
-
break;
|
|
263
|
-
case 'headless':
|
|
264
|
-
this._headlessTemplate = item.template;
|
|
265
|
-
break;
|
|
266
|
-
}
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
257
|
option(name, k) {
|
|
270
|
-
const confirmation = this.confirmation ?? {};
|
|
258
|
+
const confirmation = this.confirmation() ?? {};
|
|
271
259
|
const source = Object.prototype.hasOwnProperty.call(confirmation, name) ? confirmation : this;
|
|
272
260
|
if (Object.prototype.hasOwnProperty.call(source, name)) {
|
|
261
|
+
const value = isSignal(source[name]) ? source[name]() : source[name];
|
|
273
262
|
if (k) {
|
|
274
|
-
return
|
|
263
|
+
return value?.[k];
|
|
275
264
|
}
|
|
276
|
-
return
|
|
265
|
+
return value;
|
|
277
266
|
}
|
|
278
267
|
return undefined;
|
|
279
268
|
}
|
|
280
269
|
onEscapeKeydown(event) {
|
|
281
|
-
|
|
270
|
+
const confirmation = this.confirmation();
|
|
271
|
+
if (confirmation && confirmation.closeOnEscape !== false) {
|
|
282
272
|
this.onReject();
|
|
283
273
|
}
|
|
284
274
|
}
|
|
285
275
|
onBeforeEnter(event) {
|
|
286
|
-
if (this.confirmation) {
|
|
276
|
+
if (this.confirmation()) {
|
|
287
277
|
const focus = this.option('defaultFocus');
|
|
288
|
-
this.autoFocusAccept
|
|
289
|
-
this.autoFocusReject
|
|
278
|
+
this.autoFocusAccept.set(focus === 'accept');
|
|
279
|
+
this.autoFocusReject.set(focus === 'reject');
|
|
290
280
|
}
|
|
291
|
-
this.container
|
|
281
|
+
this.container.set(event.element);
|
|
292
282
|
this.appendOverlay();
|
|
293
283
|
this.alignOverlay();
|
|
294
284
|
this.alignArrow();
|
|
@@ -304,56 +294,57 @@ class ConfirmPopup extends BaseComponent {
|
|
|
304
294
|
}
|
|
305
295
|
}
|
|
306
296
|
onAfterLeave() {
|
|
307
|
-
this.autoFocusAccept
|
|
308
|
-
this.autoFocusReject
|
|
297
|
+
this.autoFocusAccept.set(false);
|
|
298
|
+
this.autoFocusReject.set(false);
|
|
309
299
|
this.restoreAppend();
|
|
310
300
|
this.onContainerDestroy();
|
|
311
301
|
}
|
|
312
|
-
getAcceptButtonProps()
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
return this.option('rejectButtonProps');
|
|
317
|
-
}
|
|
302
|
+
getAcceptButtonProps = computed(() => this.option('acceptButtonProps'), /* @ts-ignore */
|
|
303
|
+
...(ngDevMode ? [{ debugName: "getAcceptButtonProps" }] : /* istanbul ignore next */ []));
|
|
304
|
+
getRejectButtonProps = computed(() => this.option('rejectButtonProps'), /* @ts-ignore */
|
|
305
|
+
...(ngDevMode ? [{ debugName: "getRejectButtonProps" }] : /* istanbul ignore next */ []));
|
|
318
306
|
alignOverlay() {
|
|
319
|
-
|
|
307
|
+
const confirmation = this.confirmation();
|
|
308
|
+
if (!confirmation || !confirmation.target) {
|
|
320
309
|
return;
|
|
321
310
|
}
|
|
322
|
-
absolutePosition(this.container,
|
|
311
|
+
absolutePosition(this.container(), confirmation.target, false);
|
|
323
312
|
}
|
|
324
313
|
setZIndex() {
|
|
325
|
-
if (this.autoZIndex) {
|
|
326
|
-
ZIndexUtils.set('overlay', this.container, this.config.zIndex.overlay);
|
|
314
|
+
if (this.autoZIndex()) {
|
|
315
|
+
ZIndexUtils.set('overlay', this.container(), this.config.zIndex.overlay);
|
|
327
316
|
}
|
|
328
317
|
}
|
|
329
318
|
alignArrow() {
|
|
330
|
-
const
|
|
331
|
-
const
|
|
319
|
+
const container = this.container();
|
|
320
|
+
const containerOffset = getOffset(container);
|
|
321
|
+
const targetOffset = getOffset(this.confirmation()?.target);
|
|
332
322
|
let arrowLeft = 0;
|
|
333
323
|
if (containerOffset && targetOffset && containerOffset.left < targetOffset.left) {
|
|
334
324
|
arrowLeft = targetOffset.left - containerOffset.left;
|
|
335
325
|
}
|
|
336
|
-
if (
|
|
337
|
-
|
|
326
|
+
if (container) {
|
|
327
|
+
container.style.setProperty('--p-confirmpopup-arrow-left', `${arrowLeft}px`);
|
|
338
328
|
}
|
|
339
329
|
if (containerOffset && targetOffset && containerOffset.top < targetOffset.top) {
|
|
340
|
-
|
|
341
|
-
!this.$unstyled() && addClass(
|
|
330
|
+
container.setAttribute('data-p-confirmpopup-flipped', 'true');
|
|
331
|
+
!this.$unstyled() && addClass(container, 'p-confirm-popup-flipped');
|
|
342
332
|
}
|
|
343
333
|
}
|
|
344
334
|
appendOverlay() {
|
|
345
335
|
if (this.$appendTo() && this.$appendTo() !== 'self') {
|
|
346
336
|
if (this.$appendTo() === 'body') {
|
|
347
|
-
appendChild(this.document.body, this.container);
|
|
337
|
+
appendChild(this.document.body, this.container());
|
|
348
338
|
}
|
|
349
339
|
else {
|
|
350
|
-
appendChild(this.$appendTo(), this.container);
|
|
340
|
+
appendChild(this.$appendTo(), this.container());
|
|
351
341
|
}
|
|
352
342
|
}
|
|
353
343
|
}
|
|
354
344
|
restoreAppend() {
|
|
355
|
-
|
|
356
|
-
|
|
345
|
+
const container = this.container();
|
|
346
|
+
if (container && this.$appendTo() !== 'self') {
|
|
347
|
+
appendChild(this.el.nativeElement, container);
|
|
357
348
|
}
|
|
358
349
|
this.onContainerDestroy();
|
|
359
350
|
}
|
|
@@ -361,18 +352,20 @@ class ConfirmPopup extends BaseComponent {
|
|
|
361
352
|
this._visible.set(false);
|
|
362
353
|
}
|
|
363
354
|
onAccept() {
|
|
364
|
-
|
|
365
|
-
|
|
355
|
+
const confirmation = this.confirmation();
|
|
356
|
+
if (confirmation?.acceptEvent) {
|
|
357
|
+
confirmation.acceptEvent.next(undefined);
|
|
366
358
|
}
|
|
367
359
|
this.hide();
|
|
368
|
-
focus(
|
|
360
|
+
focus(confirmation?.target);
|
|
369
361
|
}
|
|
370
362
|
onReject() {
|
|
371
|
-
|
|
372
|
-
|
|
363
|
+
const confirmation = this.confirmation();
|
|
364
|
+
if (confirmation?.rejectEvent) {
|
|
365
|
+
confirmation.rejectEvent.next(undefined);
|
|
373
366
|
}
|
|
374
367
|
this.hide();
|
|
375
|
-
focus(
|
|
368
|
+
focus(confirmation?.target);
|
|
376
369
|
}
|
|
377
370
|
onOverlayClick(event) {
|
|
378
371
|
this.overlayService.add({
|
|
@@ -398,23 +391,26 @@ class ConfirmPopup extends BaseComponent {
|
|
|
398
391
|
this.unbindScrollListener();
|
|
399
392
|
}
|
|
400
393
|
bindDocumentClickListener() {
|
|
401
|
-
if (!this.documentClickListener) {
|
|
394
|
+
if (!this.documentClickListener()) {
|
|
402
395
|
let documentEvent = isIOS() ? 'touchstart' : 'click';
|
|
403
396
|
const documentTarget = this.el ? this.el.nativeElement.ownerDocument : this.document;
|
|
404
|
-
this.documentClickListener
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
397
|
+
this.documentClickListener.set(this.renderer.listen(documentTarget, documentEvent, (event) => {
|
|
398
|
+
const confirmation = this.confirmation();
|
|
399
|
+
if (confirmation && confirmation.dismissableMask !== false) {
|
|
400
|
+
const container = this.container();
|
|
401
|
+
let targetElement = confirmation.target;
|
|
402
|
+
if (container !== event.target && !container?.contains(event.target) && targetElement !== event.target && !targetElement.contains(event.target)) {
|
|
408
403
|
this.hide();
|
|
409
404
|
}
|
|
410
405
|
}
|
|
411
|
-
});
|
|
406
|
+
}));
|
|
412
407
|
}
|
|
413
408
|
}
|
|
414
409
|
unbindDocumentClickListener() {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
410
|
+
const documentClickListener = this.documentClickListener();
|
|
411
|
+
if (documentClickListener) {
|
|
412
|
+
documentClickListener();
|
|
413
|
+
this.documentClickListener.set(null);
|
|
418
414
|
}
|
|
419
415
|
}
|
|
420
416
|
onWindowResize() {
|
|
@@ -423,65 +419,65 @@ class ConfirmPopup extends BaseComponent {
|
|
|
423
419
|
}
|
|
424
420
|
}
|
|
425
421
|
bindDocumentResizeListener() {
|
|
426
|
-
if (!this.documentResizeListener) {
|
|
427
|
-
this.documentResizeListener
|
|
422
|
+
if (!this.documentResizeListener()) {
|
|
423
|
+
this.documentResizeListener.set(this.renderer.listen(this.window, 'resize', this.onWindowResize.bind(this)));
|
|
428
424
|
}
|
|
429
425
|
}
|
|
430
426
|
unbindDocumentResizeListener() {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
427
|
+
const documentResizeListener = this.documentResizeListener();
|
|
428
|
+
if (documentResizeListener) {
|
|
429
|
+
documentResizeListener();
|
|
430
|
+
this.documentResizeListener.set(null);
|
|
434
431
|
}
|
|
435
432
|
}
|
|
436
433
|
bindScrollListener() {
|
|
437
|
-
|
|
438
|
-
|
|
434
|
+
let scrollHandler = this.scrollHandler();
|
|
435
|
+
if (!scrollHandler) {
|
|
436
|
+
scrollHandler = new ConnectedOverlayScrollHandler(this.confirmation()?.target, () => {
|
|
439
437
|
if (this.computedVisible()) {
|
|
440
438
|
this.hide();
|
|
441
439
|
}
|
|
442
440
|
});
|
|
441
|
+
this.scrollHandler.set(scrollHandler);
|
|
443
442
|
}
|
|
444
|
-
|
|
443
|
+
scrollHandler.bindScrollListener();
|
|
445
444
|
}
|
|
446
445
|
unbindScrollListener() {
|
|
447
|
-
|
|
448
|
-
|
|
446
|
+
const scrollHandler = this.scrollHandler();
|
|
447
|
+
if (scrollHandler) {
|
|
448
|
+
scrollHandler.unbindScrollListener();
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
unsubscribeConfirmationSubscriptions() {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
452
|
+
const confirmation = this.confirmation();
|
|
453
|
+
if (confirmation) {
|
|
454
|
+
if (confirmation.acceptEvent) {
|
|
455
|
+
confirmation.acceptEvent.unsubscribe();
|
|
455
456
|
}
|
|
456
|
-
if (
|
|
457
|
-
|
|
457
|
+
if (confirmation.rejectEvent) {
|
|
458
|
+
confirmation.rejectEvent.unsubscribe();
|
|
458
459
|
}
|
|
459
460
|
}
|
|
460
461
|
}
|
|
461
462
|
onContainerDestroy() {
|
|
462
463
|
this.unbindListeners();
|
|
463
464
|
this.unsubscribeConfirmationSubscriptions();
|
|
464
|
-
if (this.autoZIndex) {
|
|
465
|
-
ZIndexUtils.clear(this.container);
|
|
465
|
+
if (this.autoZIndex()) {
|
|
466
|
+
ZIndexUtils.clear(this.container());
|
|
466
467
|
}
|
|
467
|
-
this.confirmation
|
|
468
|
+
this.confirmation.set(null);
|
|
468
469
|
this.render.set(false);
|
|
469
|
-
this.container
|
|
470
|
-
}
|
|
471
|
-
get acceptButtonLabel() {
|
|
472
|
-
return this.confirmation?.acceptLabel || this.confirmation?.acceptButtonProps?.label || this.config.getTranslation(TranslationKeys.ACCEPT);
|
|
473
|
-
}
|
|
474
|
-
get rejectButtonLabel() {
|
|
475
|
-
return this.confirmation?.rejectLabel || this.confirmation?.rejectButtonProps?.label || this.config.getTranslation(TranslationKeys.REJECT);
|
|
470
|
+
this.container.set(null);
|
|
476
471
|
}
|
|
472
|
+
acceptButtonLabel = computed(() => this.confirmation()?.acceptLabel || this.confirmation()?.acceptButtonProps?.label || this.config.getTranslation(TranslationKeys.ACCEPT), /* @ts-ignore */
|
|
473
|
+
...(ngDevMode ? [{ debugName: "acceptButtonLabel" }] : /* istanbul ignore next */ []));
|
|
474
|
+
rejectButtonLabel = computed(() => this.confirmation()?.rejectLabel || this.confirmation()?.rejectButtonProps?.label || this.config.getTranslation(TranslationKeys.REJECT), /* @ts-ignore */
|
|
475
|
+
...(ngDevMode ? [{ debugName: "rejectButtonLabel" }] : /* istanbul ignore next */ []));
|
|
477
476
|
onDestroy() {
|
|
478
477
|
this.restoreAppend();
|
|
479
|
-
if (this.subscription) {
|
|
480
|
-
this.subscription.unsubscribe();
|
|
481
|
-
}
|
|
482
478
|
}
|
|
483
479
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ConfirmPopup, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
484
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ConfirmPopup, isStandalone: true, selector: "p-confirmpopup", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal:
|
|
480
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ConfirmPopup, isStandalone: true, selector: "p-confirmpopup", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, defaultFocus: { classPropertyName: "defaultFocus", publicName: "defaultFocus", 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 }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:keydown.Escape": "onEscapeKeydown($event)" } }, providers: [ConfirmPopupStyle, { provide: CONFIRMPOPUP_INSTANCE, useExisting: ConfirmPopup }, { provide: PARENT_INSTANCE, useExisting: ConfirmPopup }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "acceptIconTemplate", first: true, predicate: ["accepticon"], isSignal: true }, { propertyName: "rejectIconTemplate", first: true, predicate: ["rejecticon"], isSignal: true }, { propertyName: "headlessTemplate", first: true, predicate: ["headless"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "acceptButtonViewChild", first: true, predicate: ["acceptButton"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "rejectButtonViewChild", first: true, predicate: ["rejectButton"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
485
481
|
@if (render()) {
|
|
486
482
|
<div
|
|
487
483
|
[pMotion]="computedVisible()"
|
|
@@ -492,75 +488,74 @@ class ConfirmPopup extends BaseComponent {
|
|
|
492
488
|
(pMotionOnAfterLeave)="onAfterLeave()"
|
|
493
489
|
pFocusTrap
|
|
494
490
|
[pBind]="ptm('root')"
|
|
495
|
-
[class]="cn(cx('root'), styleClass)"
|
|
496
|
-
[ngStyle]="style"
|
|
491
|
+
[class]="cn(cx('root'), styleClass())"
|
|
492
|
+
[ngStyle]="style()"
|
|
497
493
|
role="alertdialog"
|
|
498
494
|
(click)="onOverlayClick($event)"
|
|
499
495
|
>
|
|
500
|
-
<ng-container *ngIf="headlessTemplate() || _headlessTemplate; else notHeadless">
|
|
501
|
-
<ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate; context: { $implicit: confirmation }"></ng-container>
|
|
496
|
+
<ng-container *ngIf="headlessTemplate() || _headlessTemplate(); else notHeadless">
|
|
497
|
+
<ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate(); context: { $implicit: confirmation() }"></ng-container>
|
|
502
498
|
</ng-container>
|
|
503
499
|
<ng-template #notHeadless>
|
|
504
500
|
<div #content [pBind]="ptm('content')" [class]="cx('content')">
|
|
505
|
-
<ng-container *ngIf="contentTemplate() || _contentTemplate; else withoutContentTemplate">
|
|
506
|
-
<ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate; context: { $implicit: confirmation }"></ng-container>
|
|
501
|
+
<ng-container *ngIf="contentTemplate() || _contentTemplate(); else withoutContentTemplate">
|
|
502
|
+
<ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate(); context: { $implicit: confirmation() }"></ng-container>
|
|
507
503
|
</ng-container>
|
|
508
504
|
<ng-template #withoutContentTemplate>
|
|
509
|
-
<i [pBind]="ptm('icon')" [class]="cx('icon')" *ngIf="confirmation?.icon"></i>
|
|
510
|
-
<span [pBind]="ptm('message')" [class]="cx('message')">{{ confirmation?.message }}</span>
|
|
505
|
+
<i [pBind]="ptm('icon')" [class]="cx('icon')" *ngIf="confirmation()?.icon"></i>
|
|
506
|
+
<span [pBind]="ptm('message')" [class]="cx('message')">{{ confirmation()?.message }}</span>
|
|
511
507
|
</ng-template>
|
|
512
508
|
</div>
|
|
513
509
|
<div [pBind]="ptm('footer')" [class]="cx('footer')">
|
|
514
510
|
<p-button
|
|
515
511
|
type="button"
|
|
516
|
-
[label]="rejectButtonLabel"
|
|
512
|
+
[label]="rejectButtonLabel()"
|
|
517
513
|
(onClick)="onReject()"
|
|
518
514
|
[pt]="ptm('pcRejectButton')"
|
|
519
515
|
[class]="cx('pcRejectButton')"
|
|
520
|
-
[styleClass]="confirmation?.rejectButtonStyleClass"
|
|
521
|
-
[size]="confirmation?.rejectButtonProps?.size || 'small'"
|
|
522
|
-
[text]="confirmation?.rejectButtonProps?.text || false"
|
|
523
|
-
*ngIf="confirmation?.rejectVisible !== false"
|
|
524
|
-
[attr.aria-label]="rejectButtonLabel"
|
|
516
|
+
[styleClass]="confirmation()?.rejectButtonStyleClass"
|
|
517
|
+
[size]="confirmation()?.rejectButtonProps?.size || 'small'"
|
|
518
|
+
[text]="confirmation()?.rejectButtonProps?.text || false"
|
|
519
|
+
*ngIf="confirmation()?.rejectVisible !== false"
|
|
520
|
+
[attr.aria-label]="rejectButtonLabel()"
|
|
525
521
|
[buttonProps]="getRejectButtonProps()"
|
|
526
|
-
[autofocus]="autoFocusReject"
|
|
522
|
+
[autofocus]="autoFocusReject()"
|
|
527
523
|
[unstyled]="unstyled()"
|
|
528
524
|
>
|
|
529
525
|
<ng-template #icon>
|
|
530
|
-
<i [class]="confirmation?.rejectIcon" *ngIf="confirmation?.rejectIcon; else rejecticon"></i>
|
|
531
|
-
<ng-template #rejecticon *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate"></ng-template>
|
|
526
|
+
<i [class]="confirmation()?.rejectIcon" *ngIf="confirmation()?.rejectIcon; else rejecticon"></i>
|
|
527
|
+
<ng-template #rejecticon *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate()"></ng-template>
|
|
532
528
|
</ng-template>
|
|
533
529
|
</p-button>
|
|
534
530
|
<p-button
|
|
535
531
|
type="button"
|
|
536
|
-
[label]="acceptButtonLabel"
|
|
532
|
+
[label]="acceptButtonLabel()"
|
|
537
533
|
(onClick)="onAccept()"
|
|
538
534
|
[pt]="ptm('pcAcceptButton')"
|
|
539
535
|
[class]="cx('pcAcceptButton')"
|
|
540
|
-
[styleClass]="confirmation?.acceptButtonStyleClass"
|
|
541
|
-
[size]="confirmation?.acceptButtonProps?.size || 'small'"
|
|
542
|
-
*ngIf="confirmation?.acceptVisible !== false"
|
|
543
|
-
[attr.aria-label]="acceptButtonLabel"
|
|
536
|
+
[styleClass]="confirmation()?.acceptButtonStyleClass"
|
|
537
|
+
[size]="confirmation()?.acceptButtonProps?.size || 'small'"
|
|
538
|
+
*ngIf="confirmation()?.acceptVisible !== false"
|
|
539
|
+
[attr.aria-label]="acceptButtonLabel()"
|
|
544
540
|
[buttonProps]="getAcceptButtonProps()"
|
|
545
|
-
[autofocus]="autoFocusAccept"
|
|
541
|
+
[autofocus]="autoFocusAccept()"
|
|
546
542
|
[unstyled]="unstyled()"
|
|
547
543
|
>
|
|
548
544
|
<ng-template #icon>
|
|
549
|
-
<i [class]="confirmation?.acceptIcon" *ngIf="confirmation?.acceptIcon; else accepticontemplate"></i>
|
|
550
|
-
<ng-template #accepticontemplate *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate"></ng-template>
|
|
545
|
+
<i [class]="confirmation()?.acceptIcon" *ngIf="confirmation()?.acceptIcon; else accepticontemplate"></i>
|
|
546
|
+
<ng-template #accepticontemplate *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate()"></ng-template>
|
|
551
547
|
</ng-template>
|
|
552
548
|
</p-button>
|
|
553
549
|
</div>
|
|
554
550
|
</ng-template>
|
|
555
551
|
</div>
|
|
556
552
|
}
|
|
557
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "
|
|
553
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3.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: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i4.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 });
|
|
558
554
|
}
|
|
559
555
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ConfirmPopup, decorators: [{
|
|
560
556
|
type: Component,
|
|
561
557
|
args: [{
|
|
562
558
|
selector: 'p-confirmpopup',
|
|
563
|
-
standalone: true,
|
|
564
559
|
imports: [CommonModule, SharedModule, ButtonModule, FocusTrap, Bind, MotionModule],
|
|
565
560
|
providers: [ConfirmPopupStyle, { provide: CONFIRMPOPUP_INSTANCE, useExisting: ConfirmPopup }, { provide: PARENT_INSTANCE, useExisting: ConfirmPopup }],
|
|
566
561
|
hostDirectives: [Bind],
|
|
@@ -575,62 +570,62 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
575
570
|
(pMotionOnAfterLeave)="onAfterLeave()"
|
|
576
571
|
pFocusTrap
|
|
577
572
|
[pBind]="ptm('root')"
|
|
578
|
-
[class]="cn(cx('root'), styleClass)"
|
|
579
|
-
[ngStyle]="style"
|
|
573
|
+
[class]="cn(cx('root'), styleClass())"
|
|
574
|
+
[ngStyle]="style()"
|
|
580
575
|
role="alertdialog"
|
|
581
576
|
(click)="onOverlayClick($event)"
|
|
582
577
|
>
|
|
583
|
-
<ng-container *ngIf="headlessTemplate() || _headlessTemplate; else notHeadless">
|
|
584
|
-
<ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate; context: { $implicit: confirmation }"></ng-container>
|
|
578
|
+
<ng-container *ngIf="headlessTemplate() || _headlessTemplate(); else notHeadless">
|
|
579
|
+
<ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate(); context: { $implicit: confirmation() }"></ng-container>
|
|
585
580
|
</ng-container>
|
|
586
581
|
<ng-template #notHeadless>
|
|
587
582
|
<div #content [pBind]="ptm('content')" [class]="cx('content')">
|
|
588
|
-
<ng-container *ngIf="contentTemplate() || _contentTemplate; else withoutContentTemplate">
|
|
589
|
-
<ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate; context: { $implicit: confirmation }"></ng-container>
|
|
583
|
+
<ng-container *ngIf="contentTemplate() || _contentTemplate(); else withoutContentTemplate">
|
|
584
|
+
<ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate(); context: { $implicit: confirmation() }"></ng-container>
|
|
590
585
|
</ng-container>
|
|
591
586
|
<ng-template #withoutContentTemplate>
|
|
592
|
-
<i [pBind]="ptm('icon')" [class]="cx('icon')" *ngIf="confirmation?.icon"></i>
|
|
593
|
-
<span [pBind]="ptm('message')" [class]="cx('message')">{{ confirmation?.message }}</span>
|
|
587
|
+
<i [pBind]="ptm('icon')" [class]="cx('icon')" *ngIf="confirmation()?.icon"></i>
|
|
588
|
+
<span [pBind]="ptm('message')" [class]="cx('message')">{{ confirmation()?.message }}</span>
|
|
594
589
|
</ng-template>
|
|
595
590
|
</div>
|
|
596
591
|
<div [pBind]="ptm('footer')" [class]="cx('footer')">
|
|
597
592
|
<p-button
|
|
598
593
|
type="button"
|
|
599
|
-
[label]="rejectButtonLabel"
|
|
594
|
+
[label]="rejectButtonLabel()"
|
|
600
595
|
(onClick)="onReject()"
|
|
601
596
|
[pt]="ptm('pcRejectButton')"
|
|
602
597
|
[class]="cx('pcRejectButton')"
|
|
603
|
-
[styleClass]="confirmation?.rejectButtonStyleClass"
|
|
604
|
-
[size]="confirmation?.rejectButtonProps?.size || 'small'"
|
|
605
|
-
[text]="confirmation?.rejectButtonProps?.text || false"
|
|
606
|
-
*ngIf="confirmation?.rejectVisible !== false"
|
|
607
|
-
[attr.aria-label]="rejectButtonLabel"
|
|
598
|
+
[styleClass]="confirmation()?.rejectButtonStyleClass"
|
|
599
|
+
[size]="confirmation()?.rejectButtonProps?.size || 'small'"
|
|
600
|
+
[text]="confirmation()?.rejectButtonProps?.text || false"
|
|
601
|
+
*ngIf="confirmation()?.rejectVisible !== false"
|
|
602
|
+
[attr.aria-label]="rejectButtonLabel()"
|
|
608
603
|
[buttonProps]="getRejectButtonProps()"
|
|
609
|
-
[autofocus]="autoFocusReject"
|
|
604
|
+
[autofocus]="autoFocusReject()"
|
|
610
605
|
[unstyled]="unstyled()"
|
|
611
606
|
>
|
|
612
607
|
<ng-template #icon>
|
|
613
|
-
<i [class]="confirmation?.rejectIcon" *ngIf="confirmation?.rejectIcon; else rejecticon"></i>
|
|
614
|
-
<ng-template #rejecticon *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate"></ng-template>
|
|
608
|
+
<i [class]="confirmation()?.rejectIcon" *ngIf="confirmation()?.rejectIcon; else rejecticon"></i>
|
|
609
|
+
<ng-template #rejecticon *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate()"></ng-template>
|
|
615
610
|
</ng-template>
|
|
616
611
|
</p-button>
|
|
617
612
|
<p-button
|
|
618
613
|
type="button"
|
|
619
|
-
[label]="acceptButtonLabel"
|
|
614
|
+
[label]="acceptButtonLabel()"
|
|
620
615
|
(onClick)="onAccept()"
|
|
621
616
|
[pt]="ptm('pcAcceptButton')"
|
|
622
617
|
[class]="cx('pcAcceptButton')"
|
|
623
|
-
[styleClass]="confirmation?.acceptButtonStyleClass"
|
|
624
|
-
[size]="confirmation?.acceptButtonProps?.size || 'small'"
|
|
625
|
-
*ngIf="confirmation?.acceptVisible !== false"
|
|
626
|
-
[attr.aria-label]="acceptButtonLabel"
|
|
618
|
+
[styleClass]="confirmation()?.acceptButtonStyleClass"
|
|
619
|
+
[size]="confirmation()?.acceptButtonProps?.size || 'small'"
|
|
620
|
+
*ngIf="confirmation()?.acceptVisible !== false"
|
|
621
|
+
[attr.aria-label]="acceptButtonLabel()"
|
|
627
622
|
[buttonProps]="getAcceptButtonProps()"
|
|
628
|
-
[autofocus]="autoFocusAccept"
|
|
623
|
+
[autofocus]="autoFocusAccept()"
|
|
629
624
|
[unstyled]="unstyled()"
|
|
630
625
|
>
|
|
631
626
|
<ng-template #icon>
|
|
632
|
-
<i [class]="confirmation?.acceptIcon" *ngIf="confirmation?.acceptIcon; else accepticontemplate"></i>
|
|
633
|
-
<ng-template #accepticontemplate *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate"></ng-template>
|
|
627
|
+
<i [class]="confirmation()?.acceptIcon" *ngIf="confirmation()?.acceptIcon; else accepticontemplate"></i>
|
|
628
|
+
<ng-template #accepticontemplate *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate()"></ng-template>
|
|
634
629
|
</ng-template>
|
|
635
630
|
</p-button>
|
|
636
631
|
</div>
|
|
@@ -641,25 +636,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
641
636
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
642
637
|
encapsulation: ViewEncapsulation.None
|
|
643
638
|
}]
|
|
644
|
-
}], ctorParameters: () => [], propDecorators: { key: [{
|
|
645
|
-
type: Input
|
|
646
|
-
}], defaultFocus: [{
|
|
647
|
-
type: Input
|
|
648
|
-
}], showTransitionOptions: [{
|
|
649
|
-
type: Input
|
|
650
|
-
}], hideTransitionOptions: [{
|
|
651
|
-
type: Input
|
|
652
|
-
}], autoZIndex: [{
|
|
653
|
-
type: Input,
|
|
654
|
-
args: [{ transform: booleanAttribute }]
|
|
655
|
-
}], baseZIndex: [{
|
|
656
|
-
type: Input,
|
|
657
|
-
args: [{ transform: numberAttribute }]
|
|
658
|
-
}], style: [{
|
|
659
|
-
type: Input
|
|
660
|
-
}], styleClass: [{
|
|
661
|
-
type: Input
|
|
662
|
-
}], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], acceptIconTemplate: [{ type: i0.ContentChild, args: ['accepticon', { ...{ descendants: false }, isSignal: true }] }], rejectIconTemplate: [{ type: i0.ContentChild, args: ['rejecticon', { ...{ descendants: false }, isSignal: true }] }], headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], acceptButtonViewChild: [{ type: i0.ViewChild, args: ['acceptButton', { ...{ read: ElementRef }, isSignal: true }] }], rejectButtonViewChild: [{ type: i0.ViewChild, args: ['rejectButton', { ...{ read: ElementRef }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onEscapeKeydown: [{
|
|
639
|
+
}], ctorParameters: () => [], propDecorators: { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], defaultFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultFocus", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], acceptIconTemplate: [{ type: i0.ContentChild, args: ['accepticon', { ...{ descendants: false }, isSignal: true }] }], rejectIconTemplate: [{ type: i0.ContentChild, args: ['rejecticon', { ...{ descendants: false }, isSignal: true }] }], headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], acceptButtonViewChild: [{ type: i0.ViewChild, args: ['acceptButton', { ...{ read: ElementRef }, isSignal: true }] }], rejectButtonViewChild: [{ type: i0.ViewChild, args: ['rejectButton', { ...{ read: ElementRef }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onEscapeKeydown: [{
|
|
663
640
|
type: HostListener,
|
|
664
641
|
args: ['document:keydown.Escape', ['$event']]
|
|
665
642
|
}] } });
|