@exhaustive-ui/core 3.0.0-alpha.1 → 22.0.0-alpha.0

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.
Files changed (153) hide show
  1. package/fesm2022/exhaustive-ui-core-api.mjs +4 -4
  2. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +432 -376
  4. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-carousel.mjs +240 -206
  6. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +79 -71
  8. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +109 -97
  10. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +301 -323
  12. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  13. package/fesm2022/exhaustive-ui-core-datepicker.mjs +943 -793
  14. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  15. package/fesm2022/exhaustive-ui-core-dialog.mjs +167 -127
  16. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  17. package/fesm2022/exhaustive-ui-core-fileupload.mjs +485 -401
  18. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  19. package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
  20. package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
  21. package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
  22. package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
  23. package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
  24. package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
  26. package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
  28. package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
  30. package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
  32. package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
  34. package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
  36. package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
  38. package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
  40. package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
  42. package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
  44. package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
  46. package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
  48. package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
  50. package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
  52. package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
  54. package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
  56. package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
  58. package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
  60. package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
  62. package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
  64. package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
  66. package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
  68. package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
  70. package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
  72. package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
  74. package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
  76. package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
  78. package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
  80. package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
  82. package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
  84. package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
  86. package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
  88. package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
  90. package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
  92. package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
  94. package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
  96. package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
  98. package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
  100. package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
  102. package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
  104. package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
  106. package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
  108. package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
  110. package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
  112. package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
  114. package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
  116. package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
  118. package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
  120. package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
  122. package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
  124. package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
  126. package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-inplace.mjs +4 -4
  128. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-listbox.mjs +303 -259
  130. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-megamenu.mjs +6 -6
  132. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-menubar.mjs +2 -2
  134. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
  136. package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-multiselect.mjs +421 -333
  138. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +4 -4
  140. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-picklist.mjs +426 -346
  142. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-select.mjs +391 -337
  144. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-table.mjs +337 -293
  146. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +315 -325
  148. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-treeselect.mjs +11 -7
  150. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  151. package/package.json +11 -11
  152. package/schematics/migrations.json +5 -5
  153. package/schematics/utils/versions.json +8 -8
@@ -1029,80 +1029,100 @@ class Dialog extends BaseComponent {
1029
1029
  [attr.aria-modal]="true"
1030
1030
  [attr.data-p]="dataP()"
1031
1031
  >
1032
- <ng-container *ngIf="_headlessTemplate() || headlessTemplate() || headlessT(); else notHeadless">
1032
+ @if (_headlessTemplate() || headlessTemplate() || headlessT()) {
1033
1033
  <ng-container *ngTemplateOutlet="_headlessTemplate() || headlessTemplate() || headlessT()"></ng-container>
1034
- </ng-container>
1035
-
1036
- <ng-template #notHeadless>
1037
- <div *ngIf="resizable()" [class]="cx('resizeHandle')" [pBind]="ptm('resizeHandle')" [style.z-index]="90" (mousedown)="initResize($event)"></div>
1038
- <div #titlebar [class]="cx('header')" [pBind]="ptm('header')" (mousedown)="initDrag($event)" *ngIf="showHeader()">
1039
- <span [id]="headerId()" [class]="cx('title')" [pBind]="ptm('title')" *ngIf="!_headerTemplate() && !headerTemplate() && !headerT()">{{ header() }}</span>
1040
- <ng-container *ngTemplateOutlet="_headerTemplate() || headerTemplate() || headerT(); context: { ariaLabelledBy: computedAriaLabelledBy() }"></ng-container>
1041
- <div [class]="cx('headerActions')" [pBind]="ptm('headerActions')">
1042
- <p-button
1043
- [pt]="ptm('pcMaximizeButton')"
1044
- *ngIf="maximizable()"
1045
- [styleClass]="cx('pcMaximizeButton')"
1046
- [ariaLabel]="maximized() ? minimizeLabel : maximizeLabel"
1047
- (onClick)="maximize()"
1048
- (keydown.enter)="maximize()"
1049
- [tabindex]="maximizable() ? '0' : '-1'"
1050
- [buttonProps]="maximizeButtonProps()"
1051
- [unstyled]="unstyled()"
1052
- [attr.data-pc-group-section]="'headericon'"
1053
- >
1054
- <ng-template #icon>
1055
- <span *ngIf="maximizeIcon() && !_maximizeiconTemplate() && !_minimizeiconTemplate()" [ngClass]="maximized() ? minimizeIcon() : maximizeIcon()"></span>
1056
- <ng-container *ngIf="!maximizeIcon() && !maximizeButtonProps()?.icon">
1057
- <svg data-p-icon="window-maximize" *ngIf="!maximized() && !_maximizeiconTemplate() && !maximizeIconTemplate() && !maximizeIconT()" />
1058
- <svg data-p-icon="window-minimize" *ngIf="maximized() && !_minimizeiconTemplate() && !minimizeIconTemplate() && !minimizeIconT()" />
1059
- </ng-container>
1060
- <ng-container *ngIf="!maximized()">
1061
- <ng-template *ngTemplateOutlet="_maximizeiconTemplate() || maximizeIconTemplate() || maximizeIconT()"></ng-template>
1062
- </ng-container>
1063
- <ng-container *ngIf="maximized()">
1064
- <ng-template *ngTemplateOutlet="_minimizeiconTemplate() || minimizeIconTemplate() || minimizeIconT()"></ng-template>
1065
- </ng-container>
1066
- </ng-template>
1067
- </p-button>
1068
- <p-button
1069
- [pt]="ptm('pcCloseButton')"
1070
- *ngIf="closable()"
1071
- [styleClass]="cx('pcCloseButton')"
1072
- [ariaLabel]="closeAriaLabel()"
1073
- (onClick)="close($event)"
1074
- (keydown.enter)="close($event)"
1075
- [tabindex]="closeTabindex()"
1076
- [buttonProps]="closeButtonProps()"
1077
- [unstyled]="unstyled()"
1078
- [attr.data-pc-group-section]="'headericon'"
1079
- >
1080
- <ng-template #icon>
1081
- <ng-container *ngIf="!_closeiconTemplate() && !closeIconTemplate() && !closeIconT() && !closeButtonProps()?.icon">
1082
- <span *ngIf="closeIcon()" [class]="closeIcon()"></span>
1083
- <svg data-p-icon="times" *ngIf="!closeIcon()" />
1084
- </ng-container>
1085
- <span *ngIf="_closeiconTemplate() || closeIconTemplate() || closeIconT()">
1086
- <ng-template *ngTemplateOutlet="_closeiconTemplate() || closeIconTemplate() || closeIconT()"></ng-template>
1087
- </span>
1088
- </ng-template>
1089
- </p-button>
1034
+ } @else {
1035
+ @if (resizable()) {
1036
+ <div [class]="cx('resizeHandle')" [pBind]="ptm('resizeHandle')" [style.z-index]="90" (mousedown)="initResize($event)"></div>
1037
+ }
1038
+ @if (showHeader()) {
1039
+ <div #titlebar [class]="cx('header')" [pBind]="ptm('header')" (mousedown)="initDrag($event)">
1040
+ @if (!_headerTemplate() && !headerTemplate() && !headerT()) {
1041
+ <span [id]="headerId()" [class]="cx('title')" [pBind]="ptm('title')">{{ header() }}</span>
1042
+ }
1043
+ <ng-container *ngTemplateOutlet="_headerTemplate() || headerTemplate() || headerT(); context: { ariaLabelledBy: computedAriaLabelledBy() }"></ng-container>
1044
+ <div [class]="cx('headerActions')" [pBind]="ptm('headerActions')">
1045
+ @if (maximizable()) {
1046
+ <p-button
1047
+ [pt]="ptm('pcMaximizeButton')"
1048
+ [styleClass]="cx('pcMaximizeButton')"
1049
+ [ariaLabel]="maximized() ? minimizeLabel : maximizeLabel"
1050
+ (onClick)="maximize()"
1051
+ (keydown.enter)="maximize()"
1052
+ [tabindex]="maximizable() ? '0' : '-1'"
1053
+ [buttonProps]="maximizeButtonProps()"
1054
+ [unstyled]="unstyled()"
1055
+ [attr.data-pc-group-section]="'headericon'"
1056
+ >
1057
+ <ng-template #icon>
1058
+ @if (maximizeIcon() && !_maximizeiconTemplate() && !_minimizeiconTemplate()) {
1059
+ <span [ngClass]="maximized() ? minimizeIcon() : maximizeIcon()"></span>
1060
+ }
1061
+ @if (!maximizeIcon() && !maximizeButtonProps()?.icon) {
1062
+ @if (!maximized() && !_maximizeiconTemplate() && !maximizeIconTemplate() && !maximizeIconT()) {
1063
+ <svg data-p-icon="window-maximize" />
1064
+ }
1065
+ @if (maximized() && !_minimizeiconTemplate() && !minimizeIconTemplate() && !minimizeIconT()) {
1066
+ <svg data-p-icon="window-minimize" />
1067
+ }
1068
+ }
1069
+ @if (!maximized()) {
1070
+ <ng-template *ngTemplateOutlet="_maximizeiconTemplate() || maximizeIconTemplate() || maximizeIconT()"></ng-template>
1071
+ }
1072
+ @if (maximized()) {
1073
+ <ng-template *ngTemplateOutlet="_minimizeiconTemplate() || minimizeIconTemplate() || minimizeIconT()"></ng-template>
1074
+ }
1075
+ </ng-template>
1076
+ </p-button>
1077
+ }
1078
+ @if (closable()) {
1079
+ <p-button
1080
+ [pt]="ptm('pcCloseButton')"
1081
+ [styleClass]="cx('pcCloseButton')"
1082
+ [ariaLabel]="closeAriaLabel()"
1083
+ (onClick)="close($event)"
1084
+ (keydown.enter)="close($event)"
1085
+ [tabindex]="closeTabindex()"
1086
+ [buttonProps]="closeButtonProps()"
1087
+ [unstyled]="unstyled()"
1088
+ [attr.data-pc-group-section]="'headericon'"
1089
+ >
1090
+ <ng-template #icon>
1091
+ @if (!_closeiconTemplate() && !closeIconTemplate() && !closeIconT() && !closeButtonProps()?.icon) {
1092
+ @if (closeIcon()) {
1093
+ <span [class]="closeIcon()"></span>
1094
+ }
1095
+ @if (!closeIcon()) {
1096
+ <svg data-p-icon="times" />
1097
+ }
1098
+ }
1099
+ @if (_closeiconTemplate() || closeIconTemplate() || closeIconT()) {
1100
+ <span>
1101
+ <ng-template *ngTemplateOutlet="_closeiconTemplate() || closeIconTemplate() || closeIconT()"></ng-template>
1102
+ </span>
1103
+ }
1104
+ </ng-template>
1105
+ </p-button>
1106
+ }
1107
+ </div>
1090
1108
  </div>
1091
- </div>
1109
+ }
1092
1110
  <div #content [class]="cn(cx('content'), contentStyleClass())" [ngStyle]="contentStyle()" [pBind]="ptm('content')">
1093
1111
  <ng-content></ng-content>
1094
1112
  <ng-container *ngTemplateOutlet="_contentTemplate() || contentTemplate() || contentT()"></ng-container>
1095
1113
  </div>
1096
- <div #footer [class]="cx('footer')" [pBind]="ptm('footer')" *ngIf="_footerTemplate() || footerTemplate() || footerT()">
1097
- <ng-content select="p-footer"></ng-content>
1098
- <ng-container *ngTemplateOutlet="_footerTemplate() || footerTemplate() || footerT()"></ng-container>
1099
- </div>
1100
- </ng-template>
1114
+ @if (_footerTemplate() || footerTemplate() || footerT()) {
1115
+ <div #footer [class]="cx('footer')" [pBind]="ptm('footer')">
1116
+ <ng-content select="p-footer"></ng-content>
1117
+ <ng-container *ngTemplateOutlet="_footerTemplate() || footerTemplate() || footerT()"></ng-container>
1118
+ </div>
1119
+ }
1120
+ }
1101
1121
  </div>
1102
1122
  }
1103
1123
  </div>
1104
1124
  }
1105
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: FocusTrap, selector: "[pFocusTrap]", inputs: ["pFocusTrapDisabled"] }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: WindowMaximizeIcon, selector: "[data-p-icon=\"window-maximize\"]" }, { kind: "component", type: WindowMinimizeIcon, selector: "[data-p-icon=\"window-minimize\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i3.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1125
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: FocusTrap, selector: "[pFocusTrap]", inputs: ["pFocusTrapDisabled"] }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: WindowMaximizeIcon, selector: "[data-p-icon=\"window-maximize\"]" }, { kind: "component", type: WindowMinimizeIcon, selector: "[data-p-icon=\"window-minimize\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i3.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1106
1126
  }
1107
1127
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Dialog, decorators: [{
1108
1128
  type: Component,
@@ -1147,75 +1167,95 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1147
1167
  [attr.aria-modal]="true"
1148
1168
  [attr.data-p]="dataP()"
1149
1169
  >
1150
- <ng-container *ngIf="_headlessTemplate() || headlessTemplate() || headlessT(); else notHeadless">
1170
+ @if (_headlessTemplate() || headlessTemplate() || headlessT()) {
1151
1171
  <ng-container *ngTemplateOutlet="_headlessTemplate() || headlessTemplate() || headlessT()"></ng-container>
1152
- </ng-container>
1153
-
1154
- <ng-template #notHeadless>
1155
- <div *ngIf="resizable()" [class]="cx('resizeHandle')" [pBind]="ptm('resizeHandle')" [style.z-index]="90" (mousedown)="initResize($event)"></div>
1156
- <div #titlebar [class]="cx('header')" [pBind]="ptm('header')" (mousedown)="initDrag($event)" *ngIf="showHeader()">
1157
- <span [id]="headerId()" [class]="cx('title')" [pBind]="ptm('title')" *ngIf="!_headerTemplate() && !headerTemplate() && !headerT()">{{ header() }}</span>
1158
- <ng-container *ngTemplateOutlet="_headerTemplate() || headerTemplate() || headerT(); context: { ariaLabelledBy: computedAriaLabelledBy() }"></ng-container>
1159
- <div [class]="cx('headerActions')" [pBind]="ptm('headerActions')">
1160
- <p-button
1161
- [pt]="ptm('pcMaximizeButton')"
1162
- *ngIf="maximizable()"
1163
- [styleClass]="cx('pcMaximizeButton')"
1164
- [ariaLabel]="maximized() ? minimizeLabel : maximizeLabel"
1165
- (onClick)="maximize()"
1166
- (keydown.enter)="maximize()"
1167
- [tabindex]="maximizable() ? '0' : '-1'"
1168
- [buttonProps]="maximizeButtonProps()"
1169
- [unstyled]="unstyled()"
1170
- [attr.data-pc-group-section]="'headericon'"
1171
- >
1172
- <ng-template #icon>
1173
- <span *ngIf="maximizeIcon() && !_maximizeiconTemplate() && !_minimizeiconTemplate()" [ngClass]="maximized() ? minimizeIcon() : maximizeIcon()"></span>
1174
- <ng-container *ngIf="!maximizeIcon() && !maximizeButtonProps()?.icon">
1175
- <svg data-p-icon="window-maximize" *ngIf="!maximized() && !_maximizeiconTemplate() && !maximizeIconTemplate() && !maximizeIconT()" />
1176
- <svg data-p-icon="window-minimize" *ngIf="maximized() && !_minimizeiconTemplate() && !minimizeIconTemplate() && !minimizeIconT()" />
1177
- </ng-container>
1178
- <ng-container *ngIf="!maximized()">
1179
- <ng-template *ngTemplateOutlet="_maximizeiconTemplate() || maximizeIconTemplate() || maximizeIconT()"></ng-template>
1180
- </ng-container>
1181
- <ng-container *ngIf="maximized()">
1182
- <ng-template *ngTemplateOutlet="_minimizeiconTemplate() || minimizeIconTemplate() || minimizeIconT()"></ng-template>
1183
- </ng-container>
1184
- </ng-template>
1185
- </p-button>
1186
- <p-button
1187
- [pt]="ptm('pcCloseButton')"
1188
- *ngIf="closable()"
1189
- [styleClass]="cx('pcCloseButton')"
1190
- [ariaLabel]="closeAriaLabel()"
1191
- (onClick)="close($event)"
1192
- (keydown.enter)="close($event)"
1193
- [tabindex]="closeTabindex()"
1194
- [buttonProps]="closeButtonProps()"
1195
- [unstyled]="unstyled()"
1196
- [attr.data-pc-group-section]="'headericon'"
1197
- >
1198
- <ng-template #icon>
1199
- <ng-container *ngIf="!_closeiconTemplate() && !closeIconTemplate() && !closeIconT() && !closeButtonProps()?.icon">
1200
- <span *ngIf="closeIcon()" [class]="closeIcon()"></span>
1201
- <svg data-p-icon="times" *ngIf="!closeIcon()" />
1202
- </ng-container>
1203
- <span *ngIf="_closeiconTemplate() || closeIconTemplate() || closeIconT()">
1204
- <ng-template *ngTemplateOutlet="_closeiconTemplate() || closeIconTemplate() || closeIconT()"></ng-template>
1205
- </span>
1206
- </ng-template>
1207
- </p-button>
1172
+ } @else {
1173
+ @if (resizable()) {
1174
+ <div [class]="cx('resizeHandle')" [pBind]="ptm('resizeHandle')" [style.z-index]="90" (mousedown)="initResize($event)"></div>
1175
+ }
1176
+ @if (showHeader()) {
1177
+ <div #titlebar [class]="cx('header')" [pBind]="ptm('header')" (mousedown)="initDrag($event)">
1178
+ @if (!_headerTemplate() && !headerTemplate() && !headerT()) {
1179
+ <span [id]="headerId()" [class]="cx('title')" [pBind]="ptm('title')">{{ header() }}</span>
1180
+ }
1181
+ <ng-container *ngTemplateOutlet="_headerTemplate() || headerTemplate() || headerT(); context: { ariaLabelledBy: computedAriaLabelledBy() }"></ng-container>
1182
+ <div [class]="cx('headerActions')" [pBind]="ptm('headerActions')">
1183
+ @if (maximizable()) {
1184
+ <p-button
1185
+ [pt]="ptm('pcMaximizeButton')"
1186
+ [styleClass]="cx('pcMaximizeButton')"
1187
+ [ariaLabel]="maximized() ? minimizeLabel : maximizeLabel"
1188
+ (onClick)="maximize()"
1189
+ (keydown.enter)="maximize()"
1190
+ [tabindex]="maximizable() ? '0' : '-1'"
1191
+ [buttonProps]="maximizeButtonProps()"
1192
+ [unstyled]="unstyled()"
1193
+ [attr.data-pc-group-section]="'headericon'"
1194
+ >
1195
+ <ng-template #icon>
1196
+ @if (maximizeIcon() && !_maximizeiconTemplate() && !_minimizeiconTemplate()) {
1197
+ <span [ngClass]="maximized() ? minimizeIcon() : maximizeIcon()"></span>
1198
+ }
1199
+ @if (!maximizeIcon() && !maximizeButtonProps()?.icon) {
1200
+ @if (!maximized() && !_maximizeiconTemplate() && !maximizeIconTemplate() && !maximizeIconT()) {
1201
+ <svg data-p-icon="window-maximize" />
1202
+ }
1203
+ @if (maximized() && !_minimizeiconTemplate() && !minimizeIconTemplate() && !minimizeIconT()) {
1204
+ <svg data-p-icon="window-minimize" />
1205
+ }
1206
+ }
1207
+ @if (!maximized()) {
1208
+ <ng-template *ngTemplateOutlet="_maximizeiconTemplate() || maximizeIconTemplate() || maximizeIconT()"></ng-template>
1209
+ }
1210
+ @if (maximized()) {
1211
+ <ng-template *ngTemplateOutlet="_minimizeiconTemplate() || minimizeIconTemplate() || minimizeIconT()"></ng-template>
1212
+ }
1213
+ </ng-template>
1214
+ </p-button>
1215
+ }
1216
+ @if (closable()) {
1217
+ <p-button
1218
+ [pt]="ptm('pcCloseButton')"
1219
+ [styleClass]="cx('pcCloseButton')"
1220
+ [ariaLabel]="closeAriaLabel()"
1221
+ (onClick)="close($event)"
1222
+ (keydown.enter)="close($event)"
1223
+ [tabindex]="closeTabindex()"
1224
+ [buttonProps]="closeButtonProps()"
1225
+ [unstyled]="unstyled()"
1226
+ [attr.data-pc-group-section]="'headericon'"
1227
+ >
1228
+ <ng-template #icon>
1229
+ @if (!_closeiconTemplate() && !closeIconTemplate() && !closeIconT() && !closeButtonProps()?.icon) {
1230
+ @if (closeIcon()) {
1231
+ <span [class]="closeIcon()"></span>
1232
+ }
1233
+ @if (!closeIcon()) {
1234
+ <svg data-p-icon="times" />
1235
+ }
1236
+ }
1237
+ @if (_closeiconTemplate() || closeIconTemplate() || closeIconT()) {
1238
+ <span>
1239
+ <ng-template *ngTemplateOutlet="_closeiconTemplate() || closeIconTemplate() || closeIconT()"></ng-template>
1240
+ </span>
1241
+ }
1242
+ </ng-template>
1243
+ </p-button>
1244
+ }
1245
+ </div>
1208
1246
  </div>
1209
- </div>
1247
+ }
1210
1248
  <div #content [class]="cn(cx('content'), contentStyleClass())" [ngStyle]="contentStyle()" [pBind]="ptm('content')">
1211
1249
  <ng-content></ng-content>
1212
1250
  <ng-container *ngTemplateOutlet="_contentTemplate() || contentTemplate() || contentT()"></ng-container>
1213
1251
  </div>
1214
- <div #footer [class]="cx('footer')" [pBind]="ptm('footer')" *ngIf="_footerTemplate() || footerTemplate() || footerT()">
1215
- <ng-content select="p-footer"></ng-content>
1216
- <ng-container *ngTemplateOutlet="_footerTemplate() || footerTemplate() || footerT()"></ng-container>
1217
- </div>
1218
- </ng-template>
1252
+ @if (_footerTemplate() || footerTemplate() || footerT()) {
1253
+ <div #footer [class]="cx('footer')" [pBind]="ptm('footer')">
1254
+ <ng-content select="p-footer"></ng-content>
1255
+ <ng-container *ngTemplateOutlet="_footerTemplate() || footerTemplate() || footerT()"></ng-container>
1256
+ </div>
1257
+ }
1258
+ }
1219
1259
  </div>
1220
1260
  }
1221
1261
  </div>