@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,622 @@
|
|
|
1
|
+
# Angular Dialog Component
|
|
2
|
+
|
|
3
|
+
Dialog is a container to display content in an overlay window.
|
|
4
|
+
|
|
5
|
+
## Accessibility
|
|
6
|
+
|
|
7
|
+
Screen Reader Dialog component uses dialog 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. Trigger element also requires aria-expanded and aria-controls to be handled explicitly. Close element is a button with an aria-label that refers to the aria.close property of the locale API by default, you may use closeButtonProps to customize the element and override the default aria-label . Maximize element is a button with an aria-label that refers to the aria.maximizeLabel and aria.minimizeLabel property of the locale API. It cannot be customized using the maximizeButtonProps . Overlay Keyboard Support Key Function tab Moves focus to the next the focusable element within the dialog. shift + tab Moves focus to the previous the focusable element within the dialog. escape Closes the dialog if closeOnEscape is true. Close Button Keyboard Support Key Function enter Closes the dialog. space Closes the dialog.
|
|
8
|
+
|
|
9
|
+
## Basic
|
|
10
|
+
|
|
11
|
+
Dialog is used as a container and visibility is controlled with visible property.
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Component } from '@angular/core';
|
|
15
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
16
|
+
import { DialogModule } from '@exhaustive-ui/core/dialog';
|
|
17
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
18
|
+
|
|
19
|
+
@Component({
|
|
20
|
+
template: `
|
|
21
|
+
<div class="card flex justify-center">
|
|
22
|
+
<p-button (click)="showDialog()" label="Show" />
|
|
23
|
+
<p-dialog header="Edit Profile" [modal]="true" [(visible)]="visible" [style]="{ width: '25rem' }">
|
|
24
|
+
<span class="p-text-secondary block mb-8">Update your information.</span>
|
|
25
|
+
<div class="flex items-center gap-4 mb-4">
|
|
26
|
+
<label for="username" class="font-semibold w-24">Username</label>
|
|
27
|
+
<input pInputText id="username" class="flex-auto" autocomplete="off" />
|
|
28
|
+
</div>
|
|
29
|
+
<div class="flex items-center gap-4 mb-8">
|
|
30
|
+
<label for="email" class="font-semibold w-24">Email</label>
|
|
31
|
+
<input pInputText id="email" class="flex-auto" autocomplete="off" />
|
|
32
|
+
</div>
|
|
33
|
+
<div class="flex justify-end gap-2">
|
|
34
|
+
<p-button label="Cancel" severity="secondary" (click)="visible = false" />
|
|
35
|
+
<p-button label="Save" (click)="visible = false" />
|
|
36
|
+
</div>
|
|
37
|
+
</p-dialog>
|
|
38
|
+
</div>
|
|
39
|
+
`,
|
|
40
|
+
standalone: true,
|
|
41
|
+
imports: [ButtonModule, DialogModule, InputTextModule]
|
|
42
|
+
})
|
|
43
|
+
export class DialogBasicDemo {
|
|
44
|
+
visible: boolean = false;
|
|
45
|
+
|
|
46
|
+
showDialog() {
|
|
47
|
+
this.visible = true;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Headless
|
|
53
|
+
|
|
54
|
+
Headless mode allows you to customize the entire user interface instead of the default elements.
|
|
55
|
+
|
|
56
|
+
```typescript
|
|
57
|
+
import { Component } from '@angular/core';
|
|
58
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
59
|
+
import { DialogModule } from '@exhaustive-ui/core/dialog';
|
|
60
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
61
|
+
|
|
62
|
+
@Component({
|
|
63
|
+
template: `
|
|
64
|
+
<div class="card flex justify-center">
|
|
65
|
+
<p-button (click)="showDialog()" icon="pi pi-user" label="Login" />
|
|
66
|
+
<p-dialog maskStyleClass="backdrop-blur-sm" [(visible)]="visible" styleClass="!border-0 !bg-transparent">
|
|
67
|
+
<ng-template #headless>
|
|
68
|
+
<div class="flex flex-col px-8 py-8 gap-6 rounded-2xl" style="border-radius: 12px; background-image: radial-gradient(circle at left top, var(--p-primary-400), var(--p-primary-700))">
|
|
69
|
+
<svg width="31" height="33" viewBox="0 0 31 33" fill="none" xmlns="http://www.w3.org/2000/svg" class="block mx-auto">
|
|
70
|
+
<path d="M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z" fill="var(--p-primary-color)" />
|
|
71
|
+
<mask id="mask0_1_52" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="31" height="33">
|
|
72
|
+
<path d="M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z" fill="var(--ground-background)" />
|
|
73
|
+
</mask>
|
|
74
|
+
<g mask="url(#mask0_1_52)">
|
|
75
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.1935 0V3.5994V3.58318V20.0075V20.0075V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1935 0Z" fill="var(--p-primary-color)" />
|
|
76
|
+
</g>
|
|
77
|
+
<path d="M19.6399 15.3776L18.1861 15.0547L19.3169 16.6695V21.6755L23.1938 18.4458V12.9554L21.4169 13.6013L19.6399 15.3776Z" fill="var(--ground-background)" />
|
|
78
|
+
<path d="M10.5936 15.3776L12.0474 15.0547L10.9166 16.6695V21.6755L7.03966 18.4458V12.9554L8.81661 13.6013L10.5936 15.3776Z" fill="var(--ground-background)" />
|
|
79
|
+
<path
|
|
80
|
+
fill-rule="evenodd"
|
|
81
|
+
clip-rule="evenodd"
|
|
82
|
+
d="M11.3853 16.9726L12.6739 15.0309L13.4793 15.5163H16.7008L17.5061 15.0309L18.7947 16.9726V24.254L17.8283 25.7103L16.7008 26.843H13.4793L12.3518 25.7103L11.3853 24.254V16.9726Z"
|
|
83
|
+
fill="var(--ground-background)"
|
|
84
|
+
/>
|
|
85
|
+
<path d="M19.3168 24.7437L21.4168 22.6444V20.5451L19.3168 22.3214V24.7437Z" fill="var(--ground-background)" />
|
|
86
|
+
<path d="M10.9166 24.7437L8.81662 22.6444V20.5451L10.9166 22.3214V24.7437Z" fill="var(--ground-background)" />
|
|
87
|
+
<path
|
|
88
|
+
fill-rule="evenodd"
|
|
89
|
+
clip-rule="evenodd"
|
|
90
|
+
d="M13.0167 5.68861L11.7244 8.7568L13.8244 14.8932H14.7936V5.68861H13.0167ZM15.4397 5.68861V14.8932H16.5706L18.5091 8.7568L17.2167 5.68861H15.4397Z"
|
|
91
|
+
fill="var(--ground-background)"
|
|
92
|
+
/>
|
|
93
|
+
<path d="M13.8244 14.8932L6.87813 12.3094L5.90888 8.27235L11.8859 8.7568L13.9859 14.8932H13.8244Z" fill="var(--ground-background)" />
|
|
94
|
+
<path d="M16.5706 14.8932L23.5169 12.3094L24.4861 8.27235L18.3476 8.7568L16.4091 14.8932H16.5706Z" fill="var(--ground-background)" />
|
|
95
|
+
<path d="M18.8321 8.27235L22.2245 7.94938L19.9629 5.68861H17.7013L18.8321 8.27235Z" fill="var(--ground-background)" />
|
|
96
|
+
<path d="M11.4013 8.27235L8.00893 7.94938L10.2705 5.68861H12.5321L11.4013 8.27235Z" fill="var(--ground-background)" />
|
|
97
|
+
</svg>
|
|
98
|
+
<div class="inline-flex flex-col gap-2">
|
|
99
|
+
<label for="username" class="text-primary-50 font-semibold">Username</label>
|
|
100
|
+
<input pInputText id="username" class="!bg-white/20 !border-0 !p-4 !text-primary-50 w-80" />
|
|
101
|
+
</div>
|
|
102
|
+
<div class="inline-flex flex-col gap-2">
|
|
103
|
+
<label for="password" class="text-primary-50 font-semibold">Password</label>
|
|
104
|
+
<input pInputText id="password" class="!bg-white/20 !border-0 !p-4 !text-primary-50 w-80" type="password" />
|
|
105
|
+
</div>
|
|
106
|
+
<div class="flex items-center gap-4">
|
|
107
|
+
<p-button label="Cancel" (click)="closeDialog()" [text]="true" styleClass="!p-4 w-full !text-primary-50 !border !border-white/30 hover:!bg-white/10" class="w-full" />
|
|
108
|
+
<p-button label="Sign-In" (click)="closeDialog()" [text]="true" styleClass="!p-4 w-full !text-primary-50 !border !border-white/30 hover:!bg-white/10" class="w-full" />
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
</ng-template>
|
|
112
|
+
</p-dialog>
|
|
113
|
+
</div>
|
|
114
|
+
`,
|
|
115
|
+
standalone: true,
|
|
116
|
+
imports: [ButtonModule, DialogModule, InputTextModule]
|
|
117
|
+
})
|
|
118
|
+
export class DialogHeadlessDemo {
|
|
119
|
+
visible: boolean = false;
|
|
120
|
+
|
|
121
|
+
showDialog() {
|
|
122
|
+
this.visible = true;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
closeDialog() {
|
|
126
|
+
this.visible = false;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Long Content
|
|
132
|
+
|
|
133
|
+
Dialog automatically displays a scroller when content exceeds viewport.
|
|
134
|
+
|
|
135
|
+
```typescript
|
|
136
|
+
import { Component } from '@angular/core';
|
|
137
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
138
|
+
import { DialogModule } from '@exhaustive-ui/core/dialog';
|
|
139
|
+
|
|
140
|
+
@Component({
|
|
141
|
+
template: `
|
|
142
|
+
<div class="card flex justify-center">
|
|
143
|
+
<p-button (click)="showDialog()" label="Show" />
|
|
144
|
+
<p-dialog header="Header" [modal]="true" [(visible)]="visible" [style]="{ width: '50rem' }" [breakpoints]="{ '1199px': '75vw', '575px': '90vw' }">
|
|
145
|
+
<p class="mb-8">
|
|
146
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
147
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
148
|
+
</p>
|
|
149
|
+
<p class="mb-8">
|
|
150
|
+
"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim
|
|
151
|
+
ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur,
|
|
152
|
+
adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea
|
|
153
|
+
commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
|
|
154
|
+
</p>
|
|
155
|
+
<p class="mb-8">
|
|
156
|
+
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui
|
|
157
|
+
officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime
|
|
158
|
+
placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non
|
|
159
|
+
recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
|
|
160
|
+
</p>
|
|
161
|
+
<p class="mb-8">
|
|
162
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
163
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
164
|
+
</p>
|
|
165
|
+
<p class="mb-8">
|
|
166
|
+
"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim
|
|
167
|
+
ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur,
|
|
168
|
+
adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea
|
|
169
|
+
commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
|
|
170
|
+
</p>
|
|
171
|
+
<p>
|
|
172
|
+
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui
|
|
173
|
+
officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime
|
|
174
|
+
placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non
|
|
175
|
+
recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
|
|
176
|
+
</p>
|
|
177
|
+
</p-dialog>
|
|
178
|
+
</div>
|
|
179
|
+
`,
|
|
180
|
+
standalone: true,
|
|
181
|
+
imports: [ButtonModule, DialogModule]
|
|
182
|
+
})
|
|
183
|
+
export class DialogLongcontentDemo {
|
|
184
|
+
visible: boolean = false;
|
|
185
|
+
|
|
186
|
+
showDialog() {
|
|
187
|
+
this.visible = true;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## Maximizable
|
|
193
|
+
|
|
194
|
+
Setting maximizable property to true enables the full screen mode.
|
|
195
|
+
|
|
196
|
+
```typescript
|
|
197
|
+
import { Component } from '@angular/core';
|
|
198
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
199
|
+
import { DialogModule } from '@exhaustive-ui/core/dialog';
|
|
200
|
+
|
|
201
|
+
@Component({
|
|
202
|
+
template: `
|
|
203
|
+
<div class="card flex justify-center">
|
|
204
|
+
<p-button (click)="showDialog()" label="Show" />
|
|
205
|
+
<p-dialog header="Header" [modal]="true" [(visible)]="visible" [style]="{ width: '50rem' }" [breakpoints]="{ '1199px': '75vw', '575px': '90vw' }" [maximizable]="true">
|
|
206
|
+
<p>
|
|
207
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
208
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
209
|
+
</p>
|
|
210
|
+
</p-dialog>
|
|
211
|
+
</div>
|
|
212
|
+
`,
|
|
213
|
+
standalone: true,
|
|
214
|
+
imports: [ButtonModule, DialogModule]
|
|
215
|
+
})
|
|
216
|
+
export class DialogMaximizableDemo {
|
|
217
|
+
visible: boolean = false;
|
|
218
|
+
|
|
219
|
+
showDialog() {
|
|
220
|
+
this.visible = true;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
## modal-doc
|
|
226
|
+
|
|
227
|
+
Mask layer behind the Dialog can be turned on by setting the modal property to true .
|
|
228
|
+
|
|
229
|
+
```typescript
|
|
230
|
+
import { Component } from '@angular/core';
|
|
231
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
232
|
+
import { Dialog, DialogModule } from '@exhaustive-ui/core/dialog';
|
|
233
|
+
|
|
234
|
+
@Component({
|
|
235
|
+
template: `
|
|
236
|
+
<div class="card flex justify-center">
|
|
237
|
+
<p-button (click)="showDialog()" icon="pi pi-external-link" label="Show"></p-button>
|
|
238
|
+
<p-dialog header="Header" [(visible)]="visible" [modal]="true" [style]="{ width: '50vw' }" [draggable]="false" [resizable]="false">
|
|
239
|
+
<p class="m-0">
|
|
240
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
241
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
242
|
+
</p>
|
|
243
|
+
</p-dialog>
|
|
244
|
+
</div>
|
|
245
|
+
`,
|
|
246
|
+
standalone: true,
|
|
247
|
+
imports: [ButtonModule, DialogModule]
|
|
248
|
+
})
|
|
249
|
+
export class DialogModalDemo {
|
|
250
|
+
visible: boolean = false;
|
|
251
|
+
|
|
252
|
+
showDialog() {
|
|
253
|
+
this.visible = true;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
## overlaysinside-doc
|
|
259
|
+
|
|
260
|
+
When dialog includes other components with overlays such as dropdown, the overlay part cannot exceed dialog boundaries due to overflow. In order to solve this, you can either append the overlay to the body by using appendTo property or allow overflow in dialog.
|
|
261
|
+
|
|
262
|
+
```typescript
|
|
263
|
+
import { Component, OnInit } from '@angular/core';
|
|
264
|
+
import { FormsModule } from '@angular/forms';
|
|
265
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
266
|
+
import { DialogModule } from '@exhaustive-ui/core/dialog';
|
|
267
|
+
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
268
|
+
|
|
269
|
+
interface City {
|
|
270
|
+
name: string;
|
|
271
|
+
code: string;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@Component({
|
|
275
|
+
template: `
|
|
276
|
+
<div class="card flex justify-center">
|
|
277
|
+
<p-button (click)="showDialog()" icon="pi pi-external-link" label="Show"></p-button>
|
|
278
|
+
<p-dialog header="Header" [(visible)]="visible" [style]="{ width: '50vw' }">
|
|
279
|
+
<div class="flex py-2 justify-center">
|
|
280
|
+
<p-select appendTo="body" [options]="cities" [(ngModel)]="selectedCity" placeholder="Select a City" optionLabel="name"></p-select>
|
|
281
|
+
</div>
|
|
282
|
+
</p-dialog>
|
|
283
|
+
</div>
|
|
284
|
+
`,
|
|
285
|
+
standalone: true,
|
|
286
|
+
imports: [ButtonModule, DialogModule, SelectModule, FormsModule]
|
|
287
|
+
})
|
|
288
|
+
export class DialogOverlaysinsideDemo implements OnInit {
|
|
289
|
+
cities: City[] | undefined;
|
|
290
|
+
selectedCity: City | undefined;
|
|
291
|
+
visible: boolean = false;
|
|
292
|
+
|
|
293
|
+
ngOnInit() {
|
|
294
|
+
this.cities = [
|
|
295
|
+
{ name: 'New York', code: 'NY' },
|
|
296
|
+
{ name: 'Rome', code: 'RM' },
|
|
297
|
+
{ name: 'London', code: 'LDN' },
|
|
298
|
+
{ name: 'Istanbul', code: 'IST' },
|
|
299
|
+
{ name: 'Paris', code: 'PRS' }
|
|
300
|
+
];
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
showDialog() {
|
|
304
|
+
this.visible = true;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
## Position
|
|
310
|
+
|
|
311
|
+
The position property is used to display a Dialog at all edges and corners of the screen.
|
|
312
|
+
|
|
313
|
+
```typescript
|
|
314
|
+
import { Component } from '@angular/core';
|
|
315
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
316
|
+
import { Dialog, DialogModule } from '@exhaustive-ui/core/dialog';
|
|
317
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
318
|
+
|
|
319
|
+
@Component({
|
|
320
|
+
template: `
|
|
321
|
+
<div class="card">
|
|
322
|
+
<div class="flex flex-wrap justify-center gap-2 mb-2">
|
|
323
|
+
<p-button (click)="showDialog('left')" icon="pi pi-arrow-right" label="Left" severity="secondary" styleClass="min-w-40" />
|
|
324
|
+
<p-button (click)="showDialog('right')" icon="pi pi-arrow-left" label="Right" severity="secondary" styleClass="min-w-40" />
|
|
325
|
+
</div>
|
|
326
|
+
<div class="flex flex-wrap justify-center gap-2 mb-2">
|
|
327
|
+
<p-button (click)="showDialog('topleft')" icon="pi pi-arrow-down-right" label="TopLeft" severity="secondary" styleClass="min-w-40" />
|
|
328
|
+
<p-button (click)="showDialog('top')" icon="pi pi-arrow-down" label="Top" severity="secondary" styleClass="min-w-40" />
|
|
329
|
+
<p-button (click)="showDialog('topright')" icon="pi pi-arrow-down-left" label="TopRight" severity="secondary" styleClass="min-w-40" />
|
|
330
|
+
</div>
|
|
331
|
+
<div class="flex flex-wrap justify-center gap-2">
|
|
332
|
+
<p-button (click)="showDialog('bottomleft')" icon="pi pi-arrow-up-right" label="BottomLeft" severity="secondary" styleClass="min-w-40" />
|
|
333
|
+
<p-button (click)="showDialog('bottom')" icon="pi pi-arrow-up" label="Bottom" severity="secondary" styleClass="min-w-40" />
|
|
334
|
+
<p-button (click)="showDialog('bottomright')" icon="pi pi-arrow-up-left" label="BottomRight" severity="secondary" styleClass="min-w-40" />
|
|
335
|
+
</div>
|
|
336
|
+
<p-dialog header="Edit Profile" [modal]="true" [(visible)]="visible" [position]="position" [style]="{ width: '25rem' }">
|
|
337
|
+
<span class="text-surface-500 dark:text-surface-400 block mb-8">Update your information.</span>
|
|
338
|
+
<div class="flex items-center gap-4 mb-4">
|
|
339
|
+
<label for="username" class="font-semibold w-24">Username</label>
|
|
340
|
+
<input pInputText id="username" class="flex-auto" autocomplete="off" />
|
|
341
|
+
</div>
|
|
342
|
+
<div class="flex items-center gap-4 mb-8">
|
|
343
|
+
<label for="email" class="font-semibold w-24">Email</label>
|
|
344
|
+
<input pInputText id="email" class="flex-auto" autocomplete="off" />
|
|
345
|
+
</div>
|
|
346
|
+
<div class="flex justify-end gap-2">
|
|
347
|
+
<p-button label="Cancel" severity="secondary" (click)="visible = false" />
|
|
348
|
+
<p-button label="Save" (click)="visible = false" />
|
|
349
|
+
</div>
|
|
350
|
+
</p-dialog>
|
|
351
|
+
</div>
|
|
352
|
+
`,
|
|
353
|
+
standalone: true,
|
|
354
|
+
imports: [ButtonModule, DialogModule, InputTextModule]
|
|
355
|
+
})
|
|
356
|
+
export class DialogPositionDemo {
|
|
357
|
+
visible: boolean = false;
|
|
358
|
+
|
|
359
|
+
showDialog(position: 'left' | 'right' | 'top' | 'bottom' | 'center' | 'topleft' | 'topright' | 'bottomleft' | 'bottomright') {
|
|
360
|
+
this.position = position;
|
|
361
|
+
this.visible = true;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
## Responsive
|
|
367
|
+
|
|
368
|
+
Dialog width can be adjusted per screen size with the breakpoints option where a key defines the max-width for the breakpoint and value for the corresponding width. When no breakpoint matches width defined in style property is used.
|
|
369
|
+
|
|
370
|
+
```typescript
|
|
371
|
+
import { Component } from '@angular/core';
|
|
372
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
373
|
+
import { Dialog, DialogModule } from '@exhaustive-ui/core/dialog';
|
|
374
|
+
|
|
375
|
+
@Component({
|
|
376
|
+
template: `
|
|
377
|
+
<div class="card flex justify-center">
|
|
378
|
+
<p-button (click)="showDialog()" label="Show" />
|
|
379
|
+
<p-dialog header="Header" [(visible)]="visible" [modal]="true" [breakpoints]="{ '1199px': '75vw', '575px': '90vw' }" [style]="{ width: '50vw' }" [draggable]="false" [resizable]="false">
|
|
380
|
+
<p>
|
|
381
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
382
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
383
|
+
</p>
|
|
384
|
+
</p-dialog>
|
|
385
|
+
</div>
|
|
386
|
+
`,
|
|
387
|
+
standalone: true,
|
|
388
|
+
imports: [ButtonModule, DialogModule]
|
|
389
|
+
})
|
|
390
|
+
export class DialogResponsiveDemo {
|
|
391
|
+
visible: boolean = false;
|
|
392
|
+
|
|
393
|
+
showDialog() {
|
|
394
|
+
this.visible = true;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
## Template
|
|
400
|
+
|
|
401
|
+
Dialog can be customized using header and footer templates.
|
|
402
|
+
|
|
403
|
+
```typescript
|
|
404
|
+
import { Component } from '@angular/core';
|
|
405
|
+
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
406
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
407
|
+
import { DialogModule } from '@exhaustive-ui/core/dialog';
|
|
408
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
409
|
+
|
|
410
|
+
@Component({
|
|
411
|
+
template: `
|
|
412
|
+
<div class="card flex justify-center">
|
|
413
|
+
<p-button (click)="showDialog()" label="Show" />
|
|
414
|
+
<p-dialog [(visible)]="visible" [modal]="true" [style]="{ width: '25rem' }">
|
|
415
|
+
<ng-template #header>
|
|
416
|
+
<div class="inline-flex items-center justify-center gap-2">
|
|
417
|
+
<p-avatar image="https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png" shape="circle" />
|
|
418
|
+
<span class="font-bold whitespace-nowrap">Amy Elsner</span>
|
|
419
|
+
</div>
|
|
420
|
+
</ng-template>
|
|
421
|
+
<span class="text-surface-500 dark:text-surface-400 block mb-8">Update your information.</span>
|
|
422
|
+
<div class="flex items-center gap-4 mb-4">
|
|
423
|
+
<label for="username" class="font-semibold w-24">Username</label>
|
|
424
|
+
<input pInputText id="username" class="flex-auto" autocomplete="off" />
|
|
425
|
+
</div>
|
|
426
|
+
<div class="flex items-center gap-4 mb-2">
|
|
427
|
+
<label for="email" class="font-semibold w-24">Email</label>
|
|
428
|
+
<input pInputText id="email" class="flex-auto" autocomplete="off" />
|
|
429
|
+
</div>
|
|
430
|
+
<ng-template #footer>
|
|
431
|
+
<p-button label="Cancel" [text]="true" severity="secondary" (click)="visible = false" />
|
|
432
|
+
<p-button label="Save" [outlined]="true" severity="secondary" (click)="visible = false" />
|
|
433
|
+
</ng-template>
|
|
434
|
+
</p-dialog>
|
|
435
|
+
</div>
|
|
436
|
+
`,
|
|
437
|
+
standalone: true,
|
|
438
|
+
imports: [AvatarModule, ButtonModule, DialogModule, InputTextModule]
|
|
439
|
+
})
|
|
440
|
+
export class DialogTemplateDemo {
|
|
441
|
+
visible: boolean = false;
|
|
442
|
+
|
|
443
|
+
showDialog() {
|
|
444
|
+
this.visible = true;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
## Without Modal
|
|
450
|
+
|
|
451
|
+
Mask layer behind the Dialog is configured with the modal property. By default, no modal layer is added.
|
|
452
|
+
|
|
453
|
+
```typescript
|
|
454
|
+
import { Component } from '@angular/core';
|
|
455
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
456
|
+
import { Dialog, DialogModule } from '@exhaustive-ui/core/dialog';
|
|
457
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
458
|
+
|
|
459
|
+
@Component({
|
|
460
|
+
template: `
|
|
461
|
+
<div class="card flex justify-center">
|
|
462
|
+
<p-button (click)="showDialog()" label="Show" />
|
|
463
|
+
<p-dialog header="Edit Profile" [(visible)]="visible" [style]="{ width: '25rem' }">
|
|
464
|
+
<span class="p-text-secondary block mb-8">Update your information.</span>
|
|
465
|
+
<div class="flex items-center gap-4 mb-4">
|
|
466
|
+
<label for="username" class="font-semibold w-24">Username</label>
|
|
467
|
+
<input pInputText id="username" class="flex-auto" autocomplete="off" />
|
|
468
|
+
</div>
|
|
469
|
+
<div class="flex items-center gap-4 mb-8">
|
|
470
|
+
<label for="email" class="font-semibold w-24">Email</label>
|
|
471
|
+
<input pInputText id="email" class="flex-auto" autocomplete="off" />
|
|
472
|
+
</div>
|
|
473
|
+
<div class="flex justify-end gap-2">
|
|
474
|
+
<p-button label="Cancel" severity="secondary" (click)="visible = false" />
|
|
475
|
+
<p-button label="Save" (click)="visible = false" />
|
|
476
|
+
</div>
|
|
477
|
+
</p-dialog>
|
|
478
|
+
</div>
|
|
479
|
+
`,
|
|
480
|
+
standalone: true,
|
|
481
|
+
imports: [ButtonModule, DialogModule, InputTextModule]
|
|
482
|
+
})
|
|
483
|
+
export class DialogWithoutmodalDemo {
|
|
484
|
+
visible: boolean = false;
|
|
485
|
+
|
|
486
|
+
showDialog() {
|
|
487
|
+
this.visible = true;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
## Dialog
|
|
493
|
+
|
|
494
|
+
Dialog is a container to display content in an overlay window.
|
|
495
|
+
|
|
496
|
+
### Props
|
|
497
|
+
|
|
498
|
+
| Name | Type | Default | Description |
|
|
499
|
+
|------|------|---------|-------------|
|
|
500
|
+
| dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
|
|
501
|
+
| unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
|
|
502
|
+
| pt | InputSignal<DialogPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
503
|
+
| ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
|
|
504
|
+
| header | InputSignal<string> | ... | Title text of the dialog. |
|
|
505
|
+
| draggable | InputSignalWithTransform<boolean, unknown> | ... | Enables dragging to change the position using header. |
|
|
506
|
+
| resizable | InputSignalWithTransform<boolean, unknown> | ... | Enables resizing of the content. |
|
|
507
|
+
| contentStyle | InputSignal<any> | ... | Style of the content section. |
|
|
508
|
+
| contentStyleClass | InputSignal<string> | ... | Style class of the content. |
|
|
509
|
+
| modal | InputSignalWithTransform<boolean, unknown> | ... | Defines if background should be blocked when dialog is displayed. |
|
|
510
|
+
| closeOnEscape | InputSignalWithTransform<boolean, unknown> | ... | Specifies if pressing escape key should hide the dialog. |
|
|
511
|
+
| dismissableMask | InputSignalWithTransform<boolean, unknown> | ... | Specifies if clicking the modal background should hide the dialog. |
|
|
512
|
+
| closable | InputSignalWithTransform<boolean, unknown> | ... | Adds a close icon to the header to hide the dialog. |
|
|
513
|
+
| breakpoints | InputSignal<any> | ... | Object literal to define widths per screen size. |
|
|
514
|
+
| styleClass | InputSignal<string> | ... | Style class of the component. |
|
|
515
|
+
| maskStyleClass | InputSignal<string> | ... | Style class of the mask. |
|
|
516
|
+
| maskStyle | InputSignal<{ [klass: string]: any }> | ... | Style of the mask. |
|
|
517
|
+
| showHeader | InputSignalWithTransform<boolean, unknown> | ... | Whether to show the header or not. |
|
|
518
|
+
| blockScroll | InputSignalWithTransform<boolean, unknown> | ... | Whether background scroll should be blocked when dialog is visible. |
|
|
519
|
+
| autoZIndex | InputSignalWithTransform<boolean, unknown> | ... | Whether to automatically manage layering. |
|
|
520
|
+
| baseZIndex | InputSignalWithTransform<number, unknown> | ... | Base zIndex value to use in layering. |
|
|
521
|
+
| minX | InputSignalWithTransform<number, unknown> | ... | Minimum value for the left coordinate of dialog in dragging. |
|
|
522
|
+
| minY | InputSignalWithTransform<number, unknown> | ... | Minimum value for the top coordinate of dialog in dragging. |
|
|
523
|
+
| focusOnShow | InputSignalWithTransform<boolean, unknown> | ... | When enabled, first focusable element receives focus on show. |
|
|
524
|
+
| maximizable | InputSignalWithTransform<boolean, unknown> | ... | Whether the dialog can be displayed full screen. |
|
|
525
|
+
| keepInViewport | InputSignalWithTransform<boolean, unknown> | ... | Keeps dialog in the viewport. |
|
|
526
|
+
| focusTrap | InputSignalWithTransform<boolean, unknown> | ... | When enabled, can only focus on elements inside the dialog. |
|
|
527
|
+
| maskMotionOptions | InputSignal<MotionOptions> | ... | The motion options for the mask. |
|
|
528
|
+
| motionOptions | InputSignal<MotionOptions> | ... | The motion options. |
|
|
529
|
+
| closeIcon | InputSignal<string> | ... | Name of the close icon. |
|
|
530
|
+
| closeAriaLabel | InputSignal<string> | ... | Defines a string that labels the close button for accessibility. |
|
|
531
|
+
| closeTabindex | InputSignal<string> | ... | Index of the close button in tabbing order. |
|
|
532
|
+
| minimizeIcon | InputSignal<string> | ... | Name of the minimize icon. |
|
|
533
|
+
| maximizeIcon | InputSignal<string> | ... | Name of the maximize icon. |
|
|
534
|
+
| closeButtonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the Button component. |
|
|
535
|
+
| maximizeButtonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the Button component. |
|
|
536
|
+
| visible | ModelSignal<boolean> | false | Specifies the visibility of the dialog. Emits `visibleChange` with the new value to notify changes in the visibility state of the component. |
|
|
537
|
+
| style | InputSignal<any> | ... | Inline style of the component. |
|
|
538
|
+
| position | InputSignal<"top" \| "bottom" \| "center" \| "left" \| "right" \| "topleft" \| "bottomleft" \| "topright" \| "bottomright"> | ... | Position of the dialog. |
|
|
539
|
+
| ariaLabelledBy | InputSignal<string> | ... | Identifier of the element that labels the dialog. Defaults to the id of the generated header title. |
|
|
540
|
+
| appendTo | InputSignal<any> | 'self' | 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). |
|
|
541
|
+
|
|
542
|
+
### Emits
|
|
543
|
+
|
|
544
|
+
| Name | Parameters | Description |
|
|
545
|
+
|------|------------|-------------|
|
|
546
|
+
| role | value: string | Role attribute of html element. |
|
|
547
|
+
| onShow | value: any | Callback to invoke when dialog is shown. |
|
|
548
|
+
| onHide | value: any | Callback to invoke when dialog is hidden. |
|
|
549
|
+
| onResizeInit | event: MouseEvent | Callback to invoke when dialog resizing is initiated. |
|
|
550
|
+
| onResizeEnd | event: MouseEvent | Callback to invoke when dialog resizing is completed. |
|
|
551
|
+
| onDragEnd | event: DragEvent | Callback to invoke when dialog dragging is completed. |
|
|
552
|
+
| onMaximize | value: any | Callback to invoke when dialog maximized or unmaximized. |
|
|
553
|
+
|
|
554
|
+
### Templates
|
|
555
|
+
|
|
556
|
+
| Name | Type | Description |
|
|
557
|
+
|------|------|-------------|
|
|
558
|
+
| header | InputSignal<TemplateRef<void>> | Header template. |
|
|
559
|
+
| content | InputSignal<TemplateRef<void>> | Content template. |
|
|
560
|
+
| footer | InputSignal<TemplateRef<void>> | Footer template. |
|
|
561
|
+
| closeicon | InputSignal<TemplateRef<void>> | Close icon template. |
|
|
562
|
+
| maximizeicon | InputSignal<TemplateRef<void>> | Maximize icon template. |
|
|
563
|
+
| minimizeicon | InputSignal<TemplateRef<void>> | Minimize icon template. |
|
|
564
|
+
| headless | InputSignal<TemplateRef<void>> | Headless template. |
|
|
565
|
+
| _header | TemplateRef<void> | Custom header template. |
|
|
566
|
+
| _content | TemplateRef<void> | Custom content template. |
|
|
567
|
+
| _footer | TemplateRef<void> | Custom footer template. |
|
|
568
|
+
| _closeicon | TemplateRef<void> | Custom close icon template. |
|
|
569
|
+
| _maximizeicon | TemplateRef<void> | Custom maximize icon template. |
|
|
570
|
+
| _minimizeicon | TemplateRef<void> | Custom minimize icon template. |
|
|
571
|
+
| _headless | TemplateRef<void> | Custom headless template. |
|
|
572
|
+
|
|
573
|
+
## Pass Through Options
|
|
574
|
+
|
|
575
|
+
| Name | Type | Description |
|
|
576
|
+
|------|------|-------------|
|
|
577
|
+
| host | PassThroughOption<HTMLElement, I> | Used to pass attributes to the host's DOM element. |
|
|
578
|
+
| root | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the root's DOM element. |
|
|
579
|
+
| mask | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the mask's DOM element. |
|
|
580
|
+
| resizeHandle | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the resize handle's DOM element. |
|
|
581
|
+
| header | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the header's DOM element. |
|
|
582
|
+
| title | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the title's DOM element. |
|
|
583
|
+
| headerActions | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the header actions' DOM element. |
|
|
584
|
+
| pcMaximizeButton | ButtonPassThrough | Used to pass attributes to the maximize Button component. |
|
|
585
|
+
| pcCloseButton | ButtonPassThrough | Used to pass attributes to the close Button component. |
|
|
586
|
+
| content | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the content's DOM element. |
|
|
587
|
+
| footer | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the footer's DOM element. |
|
|
588
|
+
| motion | MotionOptions | Used to pass options to the motion component/directive. |
|
|
589
|
+
|
|
590
|
+
## Theming
|
|
591
|
+
|
|
592
|
+
### CSS Classes
|
|
593
|
+
|
|
594
|
+
| Class | Description |
|
|
595
|
+
|-------|-------------|
|
|
596
|
+
| p-dialog-mask | Class name of the mask element |
|
|
597
|
+
| p-dialog | Class name of the root element |
|
|
598
|
+
| p-dialog-header | Class name of the header element |
|
|
599
|
+
| p-dialog-title | Class name of the title element |
|
|
600
|
+
| p-dialog-header-actions | Class name of the header actions element |
|
|
601
|
+
| p-dialog-maximize-button | Class name of the maximize button element |
|
|
602
|
+
| p-dialog-close-button | Class name of the close button element |
|
|
603
|
+
| p-dialog-content | Class name of the content element |
|
|
604
|
+
| p-dialog-footer | Class name of the footer element |
|
|
605
|
+
|
|
606
|
+
### Design Tokens
|
|
607
|
+
|
|
608
|
+
| Token | CSS Variable | Description |
|
|
609
|
+
|-------|--------------|-------------|
|
|
610
|
+
| dialog.background | --p-dialog-background | Background of root |
|
|
611
|
+
| dialog.border.color | --p-dialog-border-color | Border color of root |
|
|
612
|
+
| dialog.color | --p-dialog-color | Color of root |
|
|
613
|
+
| dialog.border.radius | --p-dialog-border-radius | Border radius of root |
|
|
614
|
+
| dialog.shadow | --p-dialog-shadow | Shadow of root |
|
|
615
|
+
| dialog.header.padding | --p-dialog-header-padding | Padding of header |
|
|
616
|
+
| dialog.header.gap | --p-dialog-header-gap | Gap of header |
|
|
617
|
+
| dialog.title.font.size | --p-dialog-title-font-size | Font size of title |
|
|
618
|
+
| dialog.title.font.weight | --p-dialog-title-font-weight | Font weight of title |
|
|
619
|
+
| dialog.content.padding | --p-dialog-content-padding | Padding of content |
|
|
620
|
+
| dialog.footer.padding | --p-dialog-footer-padding | Padding of footer |
|
|
621
|
+
| dialog.footer.gap | --p-dialog-footer-gap | Gap of footer |
|
|
622
|
+
|