@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,287 @@
|
|
|
1
|
+
# Angular ConfirmDialog Component
|
|
2
|
+
|
|
3
|
+
ConfirmDialog is backed by a service utilizing Observables to display confirmation windows easily that can be shared by multiple actions on the same component.
|
|
4
|
+
|
|
5
|
+
## Accessibility
|
|
6
|
+
|
|
7
|
+
Screen Reader ConfirmDialog component uses alertdialog role along with aria-labelledby referring to the header element however any attribute is passed to the root element so you may use aria-labelledby to override this default behavior. 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. When confirm function is used and a trigger is passed as a parameter, ConfirmDialog adds aria-expanded state attribute and aria-controls to the trigger so that the relation between the trigger and the popup is defined. If the dialog is controlled with the visible property aria-expanded and aria-controls need to be handled explicitly. Overlay Keyboard Support 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
|
+
ConfirmDialog is defined using p-confirmdialog 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 { ConfirmDialogModule } from '@exhaustive-ui/core/confirmdialog';
|
|
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-confirmdialog />
|
|
25
|
+
<p-button (click)="confirm1($event)" label="Save" [outlined]="true" />
|
|
26
|
+
<p-button (click)="confirm2($event)" label="Delete" severity="danger" [outlined]="true" />
|
|
27
|
+
</div>
|
|
28
|
+
`,
|
|
29
|
+
standalone: true,
|
|
30
|
+
imports: [ButtonModule, ConfirmDialogModule, ToastModule],
|
|
31
|
+
providers: [ConfirmationService, MessageService]
|
|
32
|
+
})
|
|
33
|
+
export class ConfirmdialogBasicDemo {
|
|
34
|
+
private confirmationService = inject(ConfirmationService);
|
|
35
|
+
private messageService = inject(MessageService);
|
|
36
|
+
|
|
37
|
+
confirm2(event: Event) {
|
|
38
|
+
this.confirmationService.confirm({
|
|
39
|
+
target: event.target as EventTarget,
|
|
40
|
+
message: 'Do you want to delete this record?',
|
|
41
|
+
header: 'Danger Zone',
|
|
42
|
+
icon: 'pi pi-info-circle',
|
|
43
|
+
rejectLabel: 'Cancel',
|
|
44
|
+
rejectButtonProps: {
|
|
45
|
+
label: 'Cancel',
|
|
46
|
+
severity: 'secondary',
|
|
47
|
+
outlined: true
|
|
48
|
+
},
|
|
49
|
+
acceptButtonProps: {
|
|
50
|
+
label: 'Delete',
|
|
51
|
+
severity: 'danger'
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
accept: () => {
|
|
55
|
+
this.messageService.add({ severity: 'info', summary: 'Confirmed', detail: 'Record deleted' });
|
|
56
|
+
},
|
|
57
|
+
reject: () => {
|
|
58
|
+
this.messageService.add({ severity: 'error', summary: 'Rejected', detail: 'You have rejected' });
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Headless
|
|
66
|
+
|
|
67
|
+
Headless mode allows you to customize the entire user interface instead of the default elements.
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
import { Component, inject } from '@angular/core';
|
|
71
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
72
|
+
import { ConfirmDialogModule } from '@exhaustive-ui/core/confirmdialog';
|
|
73
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
74
|
+
import { MessageService, ConfirmationService } from '@exhaustive-ui/core/api';
|
|
75
|
+
|
|
76
|
+
@Component({
|
|
77
|
+
template: `
|
|
78
|
+
<div class="card flex justify-center">
|
|
79
|
+
<p-toast />
|
|
80
|
+
<p-confirmdialog #cd>
|
|
81
|
+
<ng-template #headless let-message let-onAccept="onAccept" let-onReject="onReject">
|
|
82
|
+
@if (message) {
|
|
83
|
+
<div class="flex flex-col items-center p-8 bg-surface-0 dark:bg-surface-900 rounded">
|
|
84
|
+
<div class="rounded-full bg-primary text-primary-contrast inline-flex justify-center items-center h-24 w-24 -mt-20">
|
|
85
|
+
<i class="pi pi-question !text-5xl"></i>
|
|
86
|
+
</div>
|
|
87
|
+
<span class="font-bold text-2xl block mb-2 mt-6">{{ message.header }}</span>
|
|
88
|
+
<p class="mb-0">{{ message.message }}</p>
|
|
89
|
+
<div class="flex items-center gap-2 mt-6">
|
|
90
|
+
<p-button label="Save" (onClick)="onAccept()" styleClass="w-32"></p-button>
|
|
91
|
+
<p-button label="Cancel" [outlined]="true" (onClick)="onReject()" styleClass="w-32"></p-button>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
}
|
|
95
|
+
</ng-template>
|
|
96
|
+
</p-confirmdialog>
|
|
97
|
+
<p-button (click)="confirm()" label="Save" />
|
|
98
|
+
</div>
|
|
99
|
+
`,
|
|
100
|
+
standalone: true,
|
|
101
|
+
imports: [ButtonModule, ConfirmDialogModule, ToastModule],
|
|
102
|
+
providers: [ConfirmationService, MessageService]
|
|
103
|
+
})
|
|
104
|
+
export class ConfirmdialogHeadlessDemo {
|
|
105
|
+
private confirmationService = inject(ConfirmationService);
|
|
106
|
+
private messageService = inject(MessageService);
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Position
|
|
111
|
+
|
|
112
|
+
The position property of the confirm options is used to display a Dialog at all edges and corners of the screen.
|
|
113
|
+
|
|
114
|
+
```typescript
|
|
115
|
+
import { Component, inject } from '@angular/core';
|
|
116
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
117
|
+
import { ConfirmDialogModule } from '@exhaustive-ui/core/confirmdialog';
|
|
118
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
119
|
+
import { MessageService, ConfirmationService } from '@exhaustive-ui/core/api';
|
|
120
|
+
import { Dialog } from '@exhaustive-ui/core/dialog';
|
|
121
|
+
|
|
122
|
+
@Component({
|
|
123
|
+
template: `
|
|
124
|
+
<div class="card">
|
|
125
|
+
<p-toast />
|
|
126
|
+
<p-confirmdialog key="positionDialog" [position]="position" />
|
|
127
|
+
<div class="flex flex-wrap justify-center gap-2 mb-4">
|
|
128
|
+
<p-button (click)="confirmPosition('left')" icon="pi pi-arrow-right" label="Left" severity="secondary" styleClass="min-w-40" />
|
|
129
|
+
<p-button (click)="confirmPosition('right')" icon="pi pi-arrow-left" label="Right" severity="secondary" styleClass="min-w-40" />
|
|
130
|
+
</div>
|
|
131
|
+
<div class="flex flex-wrap justify-center gap-2 mb-4">
|
|
132
|
+
<p-button (click)="confirmPosition('topleft')" icon="pi pi-arrow-down" label="TopLeft" severity="secondary" styleClass="min-w-40" />
|
|
133
|
+
<p-button (click)="confirmPosition('top')" icon="pi pi-arrow-down" label="Top" severity="secondary" styleClass="min-w-40" />
|
|
134
|
+
<p-button (click)="confirmPosition('topright')" icon="pi pi-arrow-down" label="TopRight" severity="secondary" styleClass="min-w-40" />
|
|
135
|
+
</div>
|
|
136
|
+
<div class="flex flex-wrap justify-center gap-2">
|
|
137
|
+
<p-button (click)="confirmPosition('bottomleft')" icon="pi pi-arrow-up" label="BottomLeft" severity="secondary" styleClass="min-w-40" />
|
|
138
|
+
<p-button (click)="confirmPosition('bottom')" icon="pi pi-arrow-up" label="Bottom" severity="secondary" styleClass="min-w-40" />
|
|
139
|
+
<p-button (click)="confirmPosition('bottomright')" icon="pi pi-arrow-up" label="BottomRight" severity="secondary" styleClass="min-w-40" />
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
`,
|
|
143
|
+
standalone: true,
|
|
144
|
+
imports: [ButtonModule, ConfirmDialogModule, ToastModule],
|
|
145
|
+
providers: [ConfirmationService, MessageService]
|
|
146
|
+
})
|
|
147
|
+
export class ConfirmdialogPositionDemo {
|
|
148
|
+
private confirmationService = inject(ConfirmationService);
|
|
149
|
+
private messageService = inject(MessageService);
|
|
150
|
+
}
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Template
|
|
154
|
+
|
|
155
|
+
Properties of the dialog are defined in two ways, message , icon , header properties can either be defined using confirm method or declaratively on p-confirmDialog ng-template by header , message , icon and footer templates. If these values are unlikely to change then declarative approach would be useful, still properties defined in a ng-template can be overridden with confirm method call. In addition, buttons at footer section can be customized by passing your own UI, important note to make confirmation work with a custom UI is defining a local ng-template variable for the dialog and assign accept()-reject() methods to your own buttons.
|
|
156
|
+
|
|
157
|
+
```typescript
|
|
158
|
+
import { Component, inject } from '@angular/core';
|
|
159
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
160
|
+
import { ConfirmDialogModule } from '@exhaustive-ui/core/confirmdialog';
|
|
161
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
162
|
+
import { MessageService, ConfirmationService } from '@exhaustive-ui/core/api';
|
|
163
|
+
|
|
164
|
+
@Component({
|
|
165
|
+
template: `
|
|
166
|
+
<div class="card flex justify-center">
|
|
167
|
+
<p-toast />
|
|
168
|
+
<p-confirmdialog>
|
|
169
|
+
<ng-template #message let-message>
|
|
170
|
+
@if (message) {
|
|
171
|
+
<div class="flex flex-col items-center w-full gap-4 border-b border-surface-200 dark:border-surface-700">
|
|
172
|
+
<i [ngClass]="message.icon" class="!text-6xl text-primary-500"></i>
|
|
173
|
+
<p>{{ message.message }}</p>
|
|
174
|
+
</div>
|
|
175
|
+
}
|
|
176
|
+
</ng-template>
|
|
177
|
+
</p-confirmdialog>
|
|
178
|
+
<p-button (click)="confirm()" label="Save" />
|
|
179
|
+
</div>
|
|
180
|
+
`,
|
|
181
|
+
standalone: true,
|
|
182
|
+
imports: [ButtonModule, ConfirmDialogModule, ToastModule],
|
|
183
|
+
providers: [ConfirmationService, MessageService]
|
|
184
|
+
})
|
|
185
|
+
export class ConfirmdialogTemplateDemo {
|
|
186
|
+
private confirmationService = inject(ConfirmationService);
|
|
187
|
+
private messageService = inject(MessageService);
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Confirm Dialog
|
|
192
|
+
|
|
193
|
+
ConfirmDialog uses a Dialog UI that is integrated with the Confirmation API.
|
|
194
|
+
|
|
195
|
+
### Props
|
|
196
|
+
|
|
197
|
+
| Name | Type | Default | Description |
|
|
198
|
+
|------|------|---------|-------------|
|
|
199
|
+
| dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
|
|
200
|
+
| unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
|
|
201
|
+
| pt | InputSignal<ConfirmDialogPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
202
|
+
| ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
|
|
203
|
+
| header | InputSignal<string> | ... | Title text of the dialog. |
|
|
204
|
+
| icon | InputSignal<string> | ... | Icon to display next to message. |
|
|
205
|
+
| message | InputSignal<string> | ... | Message of the confirmation. |
|
|
206
|
+
| style | InputSignal<{ [klass: string]: any }> | ... | Inline style of the element. |
|
|
207
|
+
| styleClass | InputSignal<string> | ... | Class of the element. |
|
|
208
|
+
| maskStyleClass | InputSignal<string> | ... | Specify the CSS class(es) for styling the mask element |
|
|
209
|
+
| acceptIcon | InputSignal<string> | ... | Icon of the accept button. |
|
|
210
|
+
| acceptLabel | InputSignal<string> | ... | Label of the accept button. |
|
|
211
|
+
| acceptVisible | InputSignalWithTransform<boolean, unknown> | ... | Visibility of the accept button. |
|
|
212
|
+
| rejectIcon | InputSignal<string> | ... | Icon of the reject button. |
|
|
213
|
+
| rejectLabel | InputSignal<string> | ... | Label of the reject button. |
|
|
214
|
+
| rejectVisible | InputSignalWithTransform<boolean, unknown> | ... | Visibility of the reject button. |
|
|
215
|
+
| acceptButtonStyleClass | InputSignal<string> | ... | Style class of the accept button. |
|
|
216
|
+
| rejectButtonStyleClass | InputSignal<string> | ... | Style class of the reject button. |
|
|
217
|
+
| closeOnEscape | InputSignalWithTransform<boolean, unknown> | ... | Specifies if pressing escape key should hide the dialog. |
|
|
218
|
+
| dismissableMask | InputSignalWithTransform<boolean, unknown> | ... | Specifies if clicking the modal background should hide the dialog. |
|
|
219
|
+
| blockScroll | InputSignalWithTransform<boolean, unknown> | ... | Determines whether scrolling behavior should be blocked within the component. |
|
|
220
|
+
| closable | InputSignalWithTransform<boolean, unknown> | ... | Adds a close icon to the header to hide the dialog. |
|
|
221
|
+
| 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). |
|
|
222
|
+
| key | InputSignal<string> | ... | Optional key to match the key of confirm object, necessary to use when component tree has multiple confirm dialogs. |
|
|
223
|
+
| autoZIndex | InputSignalWithTransform<boolean, unknown> | ... | Whether to automatically manage layering. |
|
|
224
|
+
| baseZIndex | InputSignalWithTransform<number, unknown> | ... | Base zIndex value to use in layering. |
|
|
225
|
+
| breakpoints | InputSignal<any> | ... | Object literal to define widths per screen size. |
|
|
226
|
+
| modal | InputSignalWithTransform<boolean, unknown> | ... | Defines if background should be blocked when dialog is displayed. |
|
|
227
|
+
| visible | ModelSignal<any> | ... | Current visible state as a boolean. Emits `visibleChange` with the new value when the dialog is shown or hidden. |
|
|
228
|
+
| position | InputSignal<"top" \| "bottom" \| "center" \| "left" \| "right" \| "topleft" \| "bottomleft" \| "topright" \| "bottomright"> | ... | Allows getting the position of the component. |
|
|
229
|
+
| draggable | InputSignalWithTransform<boolean, unknown> | ... | Enables dragging to change the position using header. |
|
|
230
|
+
|
|
231
|
+
### Emits
|
|
232
|
+
|
|
233
|
+
| Name | Parameters | Description |
|
|
234
|
+
|------|------------|-------------|
|
|
235
|
+
| onHide | event: ConfirmEventType | Callback to invoke when dialog is hidden. |
|
|
236
|
+
|
|
237
|
+
### Templates
|
|
238
|
+
|
|
239
|
+
| Name | Type | Description |
|
|
240
|
+
|------|------|-------------|
|
|
241
|
+
| header | TemplateRef<void> | Custom header template. |
|
|
242
|
+
| footer | TemplateRef<void> | Custom footer template. |
|
|
243
|
+
| rejecticon | TemplateRef<void> | Custom reject icon template. |
|
|
244
|
+
| accepticon | TemplateRef<void> | Custom accept icon template. |
|
|
245
|
+
| message | TemplateRef<ConfirmDialogMessageTemplateContext> | Custom message template. |
|
|
246
|
+
| icon | TemplateRef<void> | Custom icon template. |
|
|
247
|
+
| headless | TemplateRef<ConfirmDialogHeadlessTemplateContext> | Custom headless template. |
|
|
248
|
+
|
|
249
|
+
## Pass Through Options
|
|
250
|
+
|
|
251
|
+
| Name | Type | Description |
|
|
252
|
+
|------|------|-------------|
|
|
253
|
+
| host | PassThroughOption<HTMLElement, I> | Used to pass attributes to the host's DOM element. |
|
|
254
|
+
| root | DialogPassThrough | Used to pass attributes to the root's DOM element. |
|
|
255
|
+
| mask | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the mask's DOM element. |
|
|
256
|
+
| icon | PassThroughOption<HTMLElement, I> | Used to pass attributes to the icon's DOM element. |
|
|
257
|
+
| message | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the message's DOM element. |
|
|
258
|
+
| resizeHandle | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the resize handle's DOM element. |
|
|
259
|
+
| header | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the header's DOM element. |
|
|
260
|
+
| title | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the title's DOM element. |
|
|
261
|
+
| headerActions | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the header actions' DOM element. |
|
|
262
|
+
| pcCloseButton | ButtonPassThrough | Used to pass attributes to the close Button component. |
|
|
263
|
+
| content | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the content's DOM element. |
|
|
264
|
+
| footer | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the footer's DOM element. |
|
|
265
|
+
| pcAcceptButton | ButtonPassThrough | Used to pass attributes to the accept Button component. |
|
|
266
|
+
| pcRejectButton | ButtonPassThrough | Used to pass attributes to the reject Button component. |
|
|
267
|
+
|
|
268
|
+
## Theming
|
|
269
|
+
|
|
270
|
+
### CSS Classes
|
|
271
|
+
|
|
272
|
+
| Class | Description |
|
|
273
|
+
|-------|-------------|
|
|
274
|
+
| p-confirmdialog | Class name of the root element |
|
|
275
|
+
| p-confirmdialog-icon | Class name of the icon element |
|
|
276
|
+
| p-confirmdialog-message | Class name of the message element |
|
|
277
|
+
| p-confirmdialog-reject-button | Class name of the reject button element |
|
|
278
|
+
| p-confirmdialog-accept-button | Class name of the accept button element |
|
|
279
|
+
|
|
280
|
+
### Design Tokens
|
|
281
|
+
|
|
282
|
+
| Token | CSS Variable | Description |
|
|
283
|
+
|-------|--------------|-------------|
|
|
284
|
+
| confirmdialog.icon.size | --p-confirmdialog-icon-size | Size of icon |
|
|
285
|
+
| confirmdialog.icon.color | --p-confirmdialog-icon-color | Color of icon |
|
|
286
|
+
| confirmdialog.content.gap | --p-confirmdialog-content-gap | Gap of content |
|
|
287
|
+
|