@exhaustive-ui/mcp 0.0.0-stage → 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/LICENSE +23 -0
- package/README.md +167 -2
- package/data/components/accordion.md +421 -0
- package/data/components/animateonscroll.md +163 -0
- package/data/components/autocomplete.md +1077 -0
- package/data/components/autofocus.md +38 -0
- package/data/components/avatar.md +417 -0
- package/data/components/badge.md +234 -0
- package/data/components/blockui.md +108 -0
- package/data/components/breadcrumb.md +178 -0
- package/data/components/button.md +774 -0
- package/data/components/card.md +138 -0
- package/data/components/carousel.md +440 -0
- package/data/components/cascadeselect.md +1387 -0
- package/data/components/chart.md +1178 -0
- package/data/components/checkbox.md +529 -0
- package/data/components/chip.md +180 -0
- package/data/components/colorpicker.md +301 -0
- package/data/components/confirmdialog.md +287 -0
- package/data/components/confirmpopup.md +417 -0
- package/data/components/contextmenu.md +491 -0
- package/data/components/dataview.md +600 -0
- package/data/components/datepicker.md +1262 -0
- package/data/components/dialog.md +622 -0
- package/data/components/divider.md +250 -0
- package/data/components/dock.md +500 -0
- package/data/components/dragdrop.md +285 -0
- package/data/components/drawer.md +510 -0
- package/data/components/dynamicdialog.md +109 -0
- package/data/components/editor.md +291 -0
- package/data/components/fieldset.md +182 -0
- package/data/components/fileupload.md +430 -0
- package/data/components/floatlabel.md +155 -0
- package/data/components/fluid.md +72 -0
- package/data/components/focustrap.md +65 -0
- package/data/components/galleria.md +627 -0
- package/data/components/iconfield.md +246 -0
- package/data/components/iftalabel.md +105 -0
- package/data/components/imagecompare.md +97 -0
- package/data/components/inplace.md +233 -0
- package/data/components/inputgroup.md +306 -0
- package/data/components/inputmask.md +518 -0
- package/data/components/inputnumber.md +675 -0
- package/data/components/inputotp.md +336 -0
- package/data/components/inputtext.md +488 -0
- package/data/components/keyfilter.md +85 -0
- package/data/components/knob.md +462 -0
- package/data/components/listbox.md +798 -0
- package/data/components/llms.md +28 -0
- package/data/components/megamenu.md +587 -0
- package/data/components/menu.md +483 -0
- package/data/components/menubar.md +462 -0
- package/data/components/message.md +449 -0
- package/data/components/metergroup.md +241 -0
- package/data/components/multiselect.md +1047 -0
- package/data/components/orderlist.md +342 -0
- package/data/components/organizationchart.md +197 -0
- package/data/components/overlay.md +217 -0
- package/data/components/paginator.md +314 -0
- package/data/components/panel.md +214 -0
- package/data/components/panelmenu.md +699 -0
- package/data/components/password.md +570 -0
- package/data/components/picklist.md +420 -0
- package/data/components/popover.md +378 -0
- package/data/components/progressbar.md +181 -0
- package/data/components/progressspinner.md +91 -0
- package/data/components/radiobutton.md +377 -0
- package/data/components/rating.md +312 -0
- package/data/components/ripple.md +89 -0
- package/data/components/scroller.md +122 -0
- package/data/components/scrollpanel.md +149 -0
- package/data/components/scrolltop.md +105 -0
- package/data/components/select.md +1206 -0
- package/data/components/selectbutton.md +356 -0
- package/data/components/skeleton.md +242 -0
- package/data/components/slider.md +337 -0
- package/data/components/speeddial.md +589 -0
- package/data/components/splitbutton.md +945 -0
- package/data/components/splitter.md +196 -0
- package/data/components/stepper.md +411 -0
- package/data/components/styleclass.md +126 -0
- package/data/components/table.md +4557 -0
- package/data/components/tabs.md +467 -0
- package/data/components/tag.md +200 -0
- package/data/components/terminal.md +118 -0
- package/data/components/textarea.md +416 -0
- package/data/components/tieredmenu.md +578 -0
- package/data/components/timeline.md +310 -0
- package/data/components/toast.md +596 -0
- package/data/components/togglebutton.md +356 -0
- package/data/components/toggleswitch.md +285 -0
- package/data/components/toolbar.md +182 -0
- package/data/components/tooltip.md +211 -0
- package/data/components/tree.md +746 -0
- package/data/components/treeselect.md +912 -0
- package/data/components/treetable.md +2814 -0
- package/data/components.json +43751 -0
- package/data/llms-full.txt +47433 -0
- package/data/llms.txt +121 -0
- package/data/manifest.json +46513 -0
- package/data/pages/accessibility.md +28 -0
- package/data/pages/animations.md +28 -0
- package/data/pages/configuration.md +210 -0
- package/data/pages/contribution.md +20 -0
- package/data/pages/customicons.md +20 -0
- package/data/pages/faq.md +20 -0
- package/data/pages/icons.md +66 -0
- package/data/pages/installation.md +71 -0
- package/data/pages/llms.md +61 -0
- package/data/pages/passthrough.md +32 -0
- package/data/pages/philosophy.md +28 -0
- package/data/pages/primeflex.md +20 -0
- package/data/pages/rtl.md +12 -0
- package/data/pages/styled.md +132 -0
- package/data/pages/tailwind.md +40 -0
- package/data/pages/unstyled.md +39 -0
- package/data/snapshot.json +9 -0
- package/dist/index.d.mts +448 -0
- package/dist/index.mjs +2501 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +67 -3
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
# Angular ConfirmPopup Component
|
|
2
|
+
|
|
3
|
+
ConfirmPopup displays a confirmation overlay displayed relatively to its target.
|
|
4
|
+
|
|
5
|
+
## Accessibility
|
|
6
|
+
|
|
7
|
+
Screen Reader ConfirmPopup component uses alertdialog role and since any attribute is passed to the root element you may define attributes like aria-label or aria-labelledby to describe the popup contents. In addition aria-modal is added since focus is kept within the popup. It is recommended to use a trigger component that can be accessed with keyboard such as a button, if not adding tabIndex would be necessary. ConfirmPopup adds aria-expanded state attribute and aria-controls to the trigger so that the relation between the trigger and the popup is defined. Overlay Keyboard Support When the popup gets opened, the first focusable element receives the focus and this can be customized by adding autofocus to an element within the popup. Key Function tab Moves focus to the next the focusable element within the popup. shift + tab Moves focus to the previous the focusable element within the popup. escape Closes the popup and moves focus to the trigger. Buttons Keyboard Support Key Function enter Triggers the action, closes the popup and moves focus to the trigger. space Triggers the action, closes the popup and moves focus to the trigger.
|
|
8
|
+
|
|
9
|
+
## Basic
|
|
10
|
+
|
|
11
|
+
ConfirmPopup is defined using p-confirmPopup tag and an instance of ConfirmationService is required to display it bycalling confirm method.
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Component, inject } from '@angular/core';
|
|
15
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
16
|
+
import { ConfirmPopupModule } from '@exhaustive-ui/core/confirmpopup';
|
|
17
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
18
|
+
import { MessageService, ConfirmationService } from '@exhaustive-ui/core/api';
|
|
19
|
+
|
|
20
|
+
@Component({
|
|
21
|
+
template: `
|
|
22
|
+
<div class="card flex justify-center gap-2">
|
|
23
|
+
<p-toast />
|
|
24
|
+
<p-confirmpopup />
|
|
25
|
+
<p-button (onClick)="confirm1($event)" label="Save" [outlined]="true" />
|
|
26
|
+
<p-button (onClick)="confirm2($event)" label="Delete" severity="danger" [outlined]="true" />
|
|
27
|
+
</div>
|
|
28
|
+
`,
|
|
29
|
+
standalone: true,
|
|
30
|
+
imports: [ButtonModule, ConfirmPopupModule, ToastModule],
|
|
31
|
+
providers: [ConfirmationService, MessageService]
|
|
32
|
+
})
|
|
33
|
+
export class ConfirmpopupBasicDemo {
|
|
34
|
+
private confirmationService = inject(ConfirmationService);
|
|
35
|
+
private messageService = inject(MessageService);
|
|
36
|
+
|
|
37
|
+
confirm2(event: Event) {
|
|
38
|
+
this.confirmationService.confirm({
|
|
39
|
+
target: event.currentTarget as EventTarget,
|
|
40
|
+
message: 'Do you want to delete this record?',
|
|
41
|
+
icon: 'pi pi-info-circle',
|
|
42
|
+
rejectButtonProps: {
|
|
43
|
+
label: 'Cancel',
|
|
44
|
+
severity: 'secondary',
|
|
45
|
+
outlined: true
|
|
46
|
+
},
|
|
47
|
+
acceptButtonProps: {
|
|
48
|
+
label: 'Delete',
|
|
49
|
+
severity: 'danger'
|
|
50
|
+
},
|
|
51
|
+
accept: () => {
|
|
52
|
+
this.messageService.add({ severity: 'info', summary: 'Confirmed', detail: 'Record deleted', life: 3000 });
|
|
53
|
+
},
|
|
54
|
+
reject: () => {
|
|
55
|
+
this.messageService.add({ severity: 'error', summary: 'Rejected', detail: 'You have rejected', life: 3000 });
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## confirmationapi-doc
|
|
63
|
+
|
|
64
|
+
```typescript
|
|
65
|
+
import { Component } from '@angular/core';
|
|
66
|
+
|
|
67
|
+
@Component({
|
|
68
|
+
template: `
|
|
69
|
+
<div class="doc-tablewrapper">
|
|
70
|
+
<table class="doc-table">
|
|
71
|
+
<thead>
|
|
72
|
+
<tr>
|
|
73
|
+
<th>Name</th>
|
|
74
|
+
<th>Type</th>
|
|
75
|
+
<th>Default</th>
|
|
76
|
+
<th>Description</th>
|
|
77
|
+
</tr>
|
|
78
|
+
</thead>
|
|
79
|
+
<tbody>
|
|
80
|
+
<tr>
|
|
81
|
+
<td>message</td>
|
|
82
|
+
<td>string</td>
|
|
83
|
+
<td>null</td>
|
|
84
|
+
<td>Message of the confirmation.</td>
|
|
85
|
+
</tr>
|
|
86
|
+
<tr>
|
|
87
|
+
<td>key</td>
|
|
88
|
+
<td>string</td>
|
|
89
|
+
<td>null</td>
|
|
90
|
+
<td>Optional key to match the key of the confirm popup, necessary to use when component tree has multiple confirm popups.</td>
|
|
91
|
+
</tr>
|
|
92
|
+
<tr>
|
|
93
|
+
<td>icon</td>
|
|
94
|
+
<td>string</td>
|
|
95
|
+
<td>null</td>
|
|
96
|
+
<td>Icon to display next to the message.</td>
|
|
97
|
+
</tr>
|
|
98
|
+
<tr>
|
|
99
|
+
<td>accept</td>
|
|
100
|
+
<td>Function</td>
|
|
101
|
+
<td>null</td>
|
|
102
|
+
<td>Callback to execute when action is confirmed.</td>
|
|
103
|
+
</tr>
|
|
104
|
+
<tr>
|
|
105
|
+
<td>reject</td>
|
|
106
|
+
<td>Function</td>
|
|
107
|
+
<td>null</td>
|
|
108
|
+
<td>Callback to execute when action is rejected.</td>
|
|
109
|
+
</tr>
|
|
110
|
+
<tr>
|
|
111
|
+
<td>acceptLabel</td>
|
|
112
|
+
<td>string</td>
|
|
113
|
+
<td>null</td>
|
|
114
|
+
<td>Label of the accept button.</td>
|
|
115
|
+
</tr>
|
|
116
|
+
<tr>
|
|
117
|
+
<td>rejectLabel</td>
|
|
118
|
+
<td>string</td>
|
|
119
|
+
<td>null</td>
|
|
120
|
+
<td>Label of the reject button.</td>
|
|
121
|
+
</tr>
|
|
122
|
+
<tr>
|
|
123
|
+
<td>acceptIcon</td>
|
|
124
|
+
<td>string</td>
|
|
125
|
+
<td>null</td>
|
|
126
|
+
<td>Icon of the accept button.</td>
|
|
127
|
+
</tr>
|
|
128
|
+
<tr>
|
|
129
|
+
<td>rejectIcon</td>
|
|
130
|
+
<td>string</td>
|
|
131
|
+
<td>null</td>
|
|
132
|
+
<td>Icon of the reject button.</td>
|
|
133
|
+
</tr>
|
|
134
|
+
<tr>
|
|
135
|
+
<td>acceptVisible</td>
|
|
136
|
+
<td>boolean</td>
|
|
137
|
+
<td>true</td>
|
|
138
|
+
<td>Visibility of the accept button.</td>
|
|
139
|
+
</tr>
|
|
140
|
+
<tr>
|
|
141
|
+
<td>rejectVisible</td>
|
|
142
|
+
<td>boolean</td>
|
|
143
|
+
<td>true</td>
|
|
144
|
+
<td>Visibility of the reject button.</td>
|
|
145
|
+
</tr>
|
|
146
|
+
<tr>
|
|
147
|
+
<td>acceptButtonStyleClass</td>
|
|
148
|
+
<td>string</td>
|
|
149
|
+
<td>null</td>
|
|
150
|
+
<td>Style class of the accept button.</td>
|
|
151
|
+
</tr>
|
|
152
|
+
<tr>
|
|
153
|
+
<td>rejectButtonStyleClass</td>
|
|
154
|
+
<td>string</td>
|
|
155
|
+
<td>null</td>
|
|
156
|
+
<td>Style class of the reject button.</td>
|
|
157
|
+
</tr>
|
|
158
|
+
<tr>
|
|
159
|
+
<td>defaultFocus</td>
|
|
160
|
+
<td>string</td>
|
|
161
|
+
<td>accept</td>
|
|
162
|
+
<td>Element to receive the focus when the popup gets visible, valid values are "accept", "reject", and "none".</td>
|
|
163
|
+
</tr>
|
|
164
|
+
</tbody>
|
|
165
|
+
</table>
|
|
166
|
+
</div>
|
|
167
|
+
`,
|
|
168
|
+
standalone: true,
|
|
169
|
+
imports: []
|
|
170
|
+
})
|
|
171
|
+
export class ConfirmpopupConfirmationapiDemo {}
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
## Headless
|
|
175
|
+
|
|
176
|
+
Headless mode allows you to customize the entire user interface instead of the default elements.
|
|
177
|
+
|
|
178
|
+
```typescript
|
|
179
|
+
import { Component, inject } from '@angular/core';
|
|
180
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
181
|
+
import { ConfirmPopupModule } from '@exhaustive-ui/core/confirmpopup';
|
|
182
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
183
|
+
import { MessageService, ConfirmationService } from '@exhaustive-ui/core/api';
|
|
184
|
+
|
|
185
|
+
@Component({
|
|
186
|
+
template: `
|
|
187
|
+
<div class="card flex justify-center">
|
|
188
|
+
<p-toast />
|
|
189
|
+
<p-confirmpopup #cp>
|
|
190
|
+
<ng-template #headless let-message>
|
|
191
|
+
<div class="rounded p-4">
|
|
192
|
+
<span>{{ message.message }}</span>
|
|
193
|
+
<div class="flex items-center gap-2 mt-4">
|
|
194
|
+
<p-button (onClick)="cp.onAccept()" label="Save" size="small" [autofocus]="true" />
|
|
195
|
+
<p-button (onClick)="cp.onReject()" label="Cancel" [text]="true" size="small" severity="secondary" />
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
</ng-template>
|
|
199
|
+
</p-confirmpopup>
|
|
200
|
+
<p-button (onClick)="confirm($event)" label="Save" />
|
|
201
|
+
</div>
|
|
202
|
+
`,
|
|
203
|
+
standalone: true,
|
|
204
|
+
imports: [ButtonModule, ConfirmPopupModule, ToastModule],
|
|
205
|
+
providers: [ConfirmationService, MessageService]
|
|
206
|
+
})
|
|
207
|
+
export class ConfirmpopupHeadlessDemo {
|
|
208
|
+
private confirmationService = inject(ConfirmationService);
|
|
209
|
+
private messageService = inject(MessageService);
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
## props-doc
|
|
214
|
+
|
|
215
|
+
```typescript
|
|
216
|
+
import { Component } from '@angular/core';
|
|
217
|
+
|
|
218
|
+
@Component({
|
|
219
|
+
template: `
|
|
220
|
+
<div class="doc-tablewrapper">
|
|
221
|
+
<table class="doc-table">
|
|
222
|
+
<thead>
|
|
223
|
+
<tr>
|
|
224
|
+
<th>Name</th>
|
|
225
|
+
<th>Type</th>
|
|
226
|
+
<th>Default</th>
|
|
227
|
+
<th>Description</th>
|
|
228
|
+
</tr>
|
|
229
|
+
</thead>
|
|
230
|
+
<tbody>
|
|
231
|
+
<tr>
|
|
232
|
+
<td>key</td>
|
|
233
|
+
<td>string</td>
|
|
234
|
+
<td>null</td>
|
|
235
|
+
<td>Optional key to match the key of confirm object, necessary to use when component tree has multiple confirm dialogs.</td>
|
|
236
|
+
</tr>
|
|
237
|
+
<tr>
|
|
238
|
+
<td>autoZIndex</td>
|
|
239
|
+
<td>boolean</td>
|
|
240
|
+
<td>true</td>
|
|
241
|
+
<td>Whether to automatically manage layering.</td>
|
|
242
|
+
</tr>
|
|
243
|
+
<tr>
|
|
244
|
+
<td>baseZIndex</td>
|
|
245
|
+
<td>number</td>
|
|
246
|
+
<td>0</td>
|
|
247
|
+
<td>Base zIndex value to use in layering.</td>
|
|
248
|
+
</tr>
|
|
249
|
+
<tr>
|
|
250
|
+
<td>style</td>
|
|
251
|
+
<td>string</td>
|
|
252
|
+
<td>null</td>
|
|
253
|
+
<td>Inline style of the component.</td>
|
|
254
|
+
</tr>
|
|
255
|
+
<tr>
|
|
256
|
+
<td>styleClass</td>
|
|
257
|
+
<td>string</td>
|
|
258
|
+
<td>null</td>
|
|
259
|
+
<td>Style class of the component.</td>
|
|
260
|
+
</tr>
|
|
261
|
+
</tbody>
|
|
262
|
+
</table>
|
|
263
|
+
</div>
|
|
264
|
+
`,
|
|
265
|
+
standalone: true,
|
|
266
|
+
imports: []
|
|
267
|
+
})
|
|
268
|
+
export class ConfirmpopupPropsDemo {}
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
## Template
|
|
272
|
+
|
|
273
|
+
Content section can be customized using content template.
|
|
274
|
+
|
|
275
|
+
```typescript
|
|
276
|
+
import { Component, inject } from '@angular/core';
|
|
277
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
278
|
+
import { ConfirmPopupModule } from '@exhaustive-ui/core/confirmpopup';
|
|
279
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
280
|
+
import { MessageService, ConfirmationService } from '@exhaustive-ui/core/api';
|
|
281
|
+
|
|
282
|
+
@Component({
|
|
283
|
+
template: `
|
|
284
|
+
<div class="card flex justify-center">
|
|
285
|
+
<p-toast />
|
|
286
|
+
<p-confirmpopup>
|
|
287
|
+
<ng-template #content let-message>
|
|
288
|
+
<div class="flex flex-col items-center w-full gap-4 border-b border-surface-200 dark:border-surface-700 p-4 mb-4 pb-0">
|
|
289
|
+
<i [class]="message.icon" class="!text-6xl text-primary-500"></i>
|
|
290
|
+
<p>{{ message.message }}</p>
|
|
291
|
+
</div>
|
|
292
|
+
</ng-template>
|
|
293
|
+
</p-confirmpopup>
|
|
294
|
+
<p-button (click)="confirm($event)" label="Save" />
|
|
295
|
+
</div>
|
|
296
|
+
`,
|
|
297
|
+
standalone: true,
|
|
298
|
+
imports: [ButtonModule, ConfirmPopupModule, ToastModule],
|
|
299
|
+
providers: [ConfirmationService, MessageService]
|
|
300
|
+
})
|
|
301
|
+
export class ConfirmpopupTemplateDemo {
|
|
302
|
+
private confirmationService = inject(ConfirmationService);
|
|
303
|
+
private messageService = inject(MessageService);
|
|
304
|
+
}
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
## templates-doc
|
|
308
|
+
|
|
309
|
+
```typescript
|
|
310
|
+
import { Component } from '@angular/core';
|
|
311
|
+
|
|
312
|
+
@Component({
|
|
313
|
+
template: `
|
|
314
|
+
<div class="doc-tablewrapper">
|
|
315
|
+
<table class="doc-table">
|
|
316
|
+
<thead>
|
|
317
|
+
<tr>
|
|
318
|
+
<th>Name</th>
|
|
319
|
+
<th>Parameters</th>
|
|
320
|
+
</tr>
|
|
321
|
+
</thead>
|
|
322
|
+
<tbody>
|
|
323
|
+
<tr>
|
|
324
|
+
<td>accepticon</td>
|
|
325
|
+
<td>-</td>
|
|
326
|
+
</tr>
|
|
327
|
+
<tr>
|
|
328
|
+
<td>rejecticon</td>
|
|
329
|
+
<td>-</td>
|
|
330
|
+
</tr>
|
|
331
|
+
</tbody>
|
|
332
|
+
</table>
|
|
333
|
+
</div>
|
|
334
|
+
`,
|
|
335
|
+
standalone: true,
|
|
336
|
+
imports: []
|
|
337
|
+
})
|
|
338
|
+
export class ConfirmpopupTemplatesDemo {}
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
## Confirm Popup
|
|
342
|
+
|
|
343
|
+
ConfirmPopup displays a confirmation overlay displayed relatively to its target.
|
|
344
|
+
|
|
345
|
+
### Props
|
|
346
|
+
|
|
347
|
+
| Name | Type | Default | Description |
|
|
348
|
+
|------|------|---------|-------------|
|
|
349
|
+
| dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
|
|
350
|
+
| unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
|
|
351
|
+
| pt | InputSignal<ConfirmPopupPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
352
|
+
| ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
|
|
353
|
+
| key | InputSignal<string> | ... | Optional key to match the key of confirm object, necessary to use when component tree has multiple confirm dialogs. |
|
|
354
|
+
| defaultFocus | InputSignal<string> | ... | Element to receive the focus when the popup gets visible, valid values are "accept", "reject", and "none". |
|
|
355
|
+
| autoZIndex | InputSignalWithTransform<boolean, unknown> | ... | Whether to automatically manage layering. |
|
|
356
|
+
| baseZIndex | InputSignalWithTransform<number, unknown> | ... | Base zIndex value to use in layering. |
|
|
357
|
+
| style | InputSignal<{ [klass: string]: any }> | ... | Inline style of the component. |
|
|
358
|
+
| styleClass | InputSignal<string> | ... | Style class of the component. |
|
|
359
|
+
| visible | InputSignal<boolean> | ... | Defines if the component is visible. |
|
|
360
|
+
| motionOptions | InputSignal<MotionOptions> | ... | The motion options. |
|
|
361
|
+
| appendTo | InputSignal<any> | 'body' | 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). |
|
|
362
|
+
|
|
363
|
+
### Templates
|
|
364
|
+
|
|
365
|
+
| Name | Type | Description |
|
|
366
|
+
|------|------|-------------|
|
|
367
|
+
| content | TemplateRef<ConfirmPopupContentTemplateContext> | Custom content template. |
|
|
368
|
+
| accepticon | TemplateRef<void> | Custom accept icon template. |
|
|
369
|
+
| rejecticon | TemplateRef<void> | Custom reject icon template. |
|
|
370
|
+
| headless | TemplateRef<ConfirmPopupHeadlessTemplateContext> | Custom headless template. |
|
|
371
|
+
|
|
372
|
+
## Pass Through Options
|
|
373
|
+
|
|
374
|
+
| Name | Type | Description |
|
|
375
|
+
|------|------|-------------|
|
|
376
|
+
| host | PassThroughOption<HTMLElement, I> | Used to pass attributes to the host's DOM element. |
|
|
377
|
+
| root | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the root's DOM element. |
|
|
378
|
+
| content | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the content's DOM element. |
|
|
379
|
+
| icon | PassThroughOption<HTMLElement, I> | Used to pass attributes to the icon's DOM element. |
|
|
380
|
+
| message | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the message's DOM element. |
|
|
381
|
+
| footer | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the footer's DOM element. |
|
|
382
|
+
| pcRejectButton | ButtonPassThrough | Used to pass attributes to the reject Button component. |
|
|
383
|
+
| pcAcceptButton | ButtonPassThrough | Used to pass attributes to the accept Button component. |
|
|
384
|
+
| motion | MotionOptions | Used to pass options to the motion component/directive. |
|
|
385
|
+
|
|
386
|
+
## Theming
|
|
387
|
+
|
|
388
|
+
### CSS Classes
|
|
389
|
+
|
|
390
|
+
| Class | Description |
|
|
391
|
+
|-------|-------------|
|
|
392
|
+
| p-confirmpopup | Class name of the root element |
|
|
393
|
+
| p-confirmpopup-content | Class name of the content element |
|
|
394
|
+
| p-confirmpopup-icon | Class name of the icon element |
|
|
395
|
+
| p-confirmpopup-message | Class name of the message element |
|
|
396
|
+
| p-confirmpopup-footer | Class name of the footer element |
|
|
397
|
+
| p-confirmpopup-reject-button | Class name of the reject button element |
|
|
398
|
+
| p-confirmpopup-accept-button | Class name of the accept button element |
|
|
399
|
+
|
|
400
|
+
### Design Tokens
|
|
401
|
+
|
|
402
|
+
| Token | CSS Variable | Description |
|
|
403
|
+
|-------|--------------|-------------|
|
|
404
|
+
| confirmpopup.background | --p-confirmpopup-background | Background of root |
|
|
405
|
+
| confirmpopup.border.color | --p-confirmpopup-border-color | Border color of root |
|
|
406
|
+
| confirmpopup.color | --p-confirmpopup-color | Color of root |
|
|
407
|
+
| confirmpopup.border.radius | --p-confirmpopup-border-radius | Border radius of root |
|
|
408
|
+
| confirmpopup.shadow | --p-confirmpopup-shadow | Shadow of root |
|
|
409
|
+
| confirmpopup.gutter | --p-confirmpopup-gutter | Gutter of root |
|
|
410
|
+
| confirmpopup.arrow.offset | --p-confirmpopup-arrow-offset | Arrow offset of root |
|
|
411
|
+
| confirmpopup.content.padding | --p-confirmpopup-content-padding | Padding of content |
|
|
412
|
+
| confirmpopup.content.gap | --p-confirmpopup-content-gap | Gap of content |
|
|
413
|
+
| confirmpopup.icon.size | --p-confirmpopup-icon-size | Size of icon |
|
|
414
|
+
| confirmpopup.icon.color | --p-confirmpopup-icon-color | Color of icon |
|
|
415
|
+
| confirmpopup.footer.gap | --p-confirmpopup-footer-gap | Gap of footer |
|
|
416
|
+
| confirmpopup.footer.padding | --p-confirmpopup-footer-padding | Padding of footer |
|
|
417
|
+
|