@exhaustive-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.11

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 (188) hide show
  1. package/README.md +22 -4
  2. package/fesm2022/exhaustive-ui-core-accordion.mjs +6 -0
  3. package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
  4. package/fesm2022/exhaustive-ui-core-api.mjs +7 -5
  5. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  6. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +24 -13
  7. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  8. package/fesm2022/exhaustive-ui-core-autofocus.mjs +4 -4
  9. package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
  10. package/fesm2022/exhaustive-ui-core-basecomponent.mjs +12 -2
  11. package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
  12. package/fesm2022/exhaustive-ui-core-blockui.mjs +7 -0
  13. package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
  14. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +13 -6
  15. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  16. package/fesm2022/exhaustive-ui-core-button.mjs +30 -8
  17. package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
  18. package/fesm2022/exhaustive-ui-core-card.mjs +0 -4
  19. package/fesm2022/exhaustive-ui-core-card.mjs.map +1 -1
  20. package/fesm2022/exhaustive-ui-core-carousel.mjs +7 -2
  21. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  22. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +7 -7
  23. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  24. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +64 -25
  26. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +26 -3
  28. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +14 -7
  30. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-datepicker.mjs +172 -93
  32. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-dialog.mjs +29 -11
  34. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-dom.mjs +3 -1
  36. package/fesm2022/exhaustive-ui-core-dom.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-drawer.mjs +22 -4
  38. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +9 -5
  40. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-fieldset.mjs +2 -2
  42. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-fileupload.mjs +24 -13
  44. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-focustrap.mjs +0 -2
  46. package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-iconfield.mjs +16 -1
  48. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-image.mjs +10 -2
  50. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-inplace.mjs +1 -1
  52. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +9 -0
  54. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-inputmask.mjs +29 -5
  56. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +83 -23
  58. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-inputotp.mjs +15 -3
  60. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-inputtext.mjs +6 -5
  62. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +27 -17
  64. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-listbox.mjs +15 -4
  66. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-megamenu.mjs +1 -0
  68. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-menu.mjs +19 -8
  70. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-menubar.mjs +57 -13
  72. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-metergroup.mjs +5 -5
  74. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-multiselect.mjs +38 -25
  76. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-orderlist.mjs +17 -4
  78. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-overlay.mjs +4 -0
  80. package/fesm2022/exhaustive-ui-core-overlay.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +2 -2
  82. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-paginator.mjs +12 -5
  84. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-panel.mjs +7 -9
  86. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +38 -12
  88. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-password.mjs +90 -22
  90. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-picklist.mjs +17 -10
  92. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-popover.mjs +26 -7
  94. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-progressbar.mjs +3 -3
  96. package/fesm2022/exhaustive-ui-core-progressbar.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-radiobutton.mjs +6 -1
  98. package/fesm2022/exhaustive-ui-core-radiobutton.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-scroller.mjs +13 -3
  100. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +10 -2
  102. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-select.mjs +66 -27
  104. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +12 -6
  106. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-slider.mjs +17 -4
  108. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +8 -4
  110. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-splitter.mjs +27 -6
  112. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-stepper.mjs +8 -4
  114. package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-table.mjs +338 -167
  116. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-tabs.mjs +44 -8
  118. package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-textarea.mjs +9 -1
  120. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +28 -13
  122. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-toast.mjs +15 -1
  124. package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +9 -2
  126. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +0 -2
  128. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-tooltip.mjs +5 -1
  130. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-tree.mjs +28 -9
  132. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-treeselect.mjs +51 -4
  134. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-treetable.mjs +80 -8
  136. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-utils.mjs +2 -1
  138. package/fesm2022/exhaustive-ui-core-utils.mjs.map +1 -1
  139. package/package.json +5 -5
  140. package/schematics/migrations/remove-dead-inputs/migration.js +5 -4
  141. package/schematics/migrations/remove-dead-outputs/migration.js +6 -5
  142. package/schematics/utils/versions.json +8 -8
  143. package/types/exhaustive-ui-core-api.d.ts +4 -0
  144. package/types/exhaustive-ui-core-autocomplete.d.ts +2 -0
  145. package/types/exhaustive-ui-core-autofocus.d.ts +1 -1
  146. package/types/exhaustive-ui-core-basecomponent.d.ts +1 -0
  147. package/types/exhaustive-ui-core-breadcrumb.d.ts +7 -1
  148. package/types/exhaustive-ui-core-button.d.ts +12 -1
  149. package/types/exhaustive-ui-core-cascadeselect.d.ts +1 -1
  150. package/types/exhaustive-ui-core-chart.d.ts +2 -2
  151. package/types/exhaustive-ui-core-confirmdialog.d.ts +17 -5
  152. package/types/exhaustive-ui-core-confirmpopup.d.ts +4 -0
  153. package/types/exhaustive-ui-core-datepicker.d.ts +9 -2
  154. package/types/exhaustive-ui-core-dialog.d.ts +2 -0
  155. package/types/exhaustive-ui-core-drawer.d.ts +1 -0
  156. package/types/exhaustive-ui-core-dynamicdialog.d.ts +2 -2
  157. package/types/exhaustive-ui-core-fileupload.d.ts +4 -0
  158. package/types/exhaustive-ui-core-iconfield.d.ts +1 -2
  159. package/types/exhaustive-ui-core-image.d.ts +6 -1
  160. package/types/exhaustive-ui-core-inputnumber.d.ts +8 -0
  161. package/types/exhaustive-ui-core-keyfilter.d.ts +1 -0
  162. package/types/exhaustive-ui-core-megamenu.d.ts +1 -0
  163. package/types/exhaustive-ui-core-menu.d.ts +2 -0
  164. package/types/exhaustive-ui-core-menubar.d.ts +5 -0
  165. package/types/exhaustive-ui-core-metergroup.d.ts +1 -1
  166. package/types/exhaustive-ui-core-multiselect.d.ts +1 -1
  167. package/types/exhaustive-ui-core-orderlist.d.ts +11 -1
  168. package/types/exhaustive-ui-core-paginator.d.ts +1 -0
  169. package/types/exhaustive-ui-core-panelmenu.d.ts +5 -0
  170. package/types/exhaustive-ui-core-password.d.ts +9 -1
  171. package/types/exhaustive-ui-core-picklist.d.ts +3 -3
  172. package/types/exhaustive-ui-core-popover.d.ts +3 -0
  173. package/types/exhaustive-ui-core-select.d.ts +4 -1
  174. package/types/exhaustive-ui-core-selectbutton.d.ts +3 -0
  175. package/types/exhaustive-ui-core-splitbutton.d.ts +2 -1
  176. package/types/exhaustive-ui-core-splitter.d.ts +7 -1
  177. package/types/exhaustive-ui-core-stepper.d.ts +3 -2
  178. package/types/exhaustive-ui-core-table.d.ts +16 -3
  179. package/types/exhaustive-ui-core-tabs.d.ts +4 -0
  180. package/types/exhaustive-ui-core-tieredmenu.d.ts +2 -0
  181. package/types/exhaustive-ui-core-togglebutton.d.ts +1 -0
  182. package/types/exhaustive-ui-core-tree.d.ts +2 -0
  183. package/types/exhaustive-ui-core-treeselect.d.ts +12 -1
  184. package/types/exhaustive-ui-core-treetable.d.ts +22 -2
  185. package/types/exhaustive-ui-core-types-chart.d.ts +21 -1
  186. package/types/exhaustive-ui-core-types-confirmdialog.d.ts +1 -3
  187. package/types/exhaustive-ui-core-types-table.d.ts +1 -1
  188. package/types/exhaustive-ui-core-types-treetable.d.ts +2 -2
@@ -3,7 +3,7 @@ import * as i2 from '@angular/common';
3
3
  import { isPlatformBrowser, CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
5
  import { Injectable, InjectionToken, input, inject, afterEveryRender, booleanAttribute, numberAttribute, computed, model, output, viewChild, contentChild, linkedSignal, signal, NgZone, contentChildren, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
- import { uuid, setAttribute, addStyle, getOuterWidth, getOuterHeight, getViewport, appendChild, removeClass, hasClass } from '@exhaustive-ui/utils';
6
+ import { uuid, setAttribute, addStyle, getOuterWidth, getOuterHeight, getViewport, appendChild, removeClass } from '@exhaustive-ui/utils';
7
7
  import { TranslationKeys, OverlayService, PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
8
8
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
9
9
  import * as i1 from '@exhaustive-ui/core/bind';
@@ -507,7 +507,8 @@ class Dialog extends BaseComponent {
507
507
  ...(ngDevMode ? [{ debugName: "wrapper" }] : /* istanbul ignore next */ []));
508
508
  dragging = signal(undefined, /* @ts-ignore */
509
509
  ...(ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []));
510
- headerId = computed(() => (this.header() !== null ? this.id + '_header' : null), /* @ts-ignore */
510
+ // the title span carrying this id is not rendered without a header or with a headless template
511
+ headerId = computed(() => (this.header() !== null && this.showHeader() && !this._headlessTemplate() && !this.headlessTemplate() && !this.headlessT() ? this.id + '_header' : null), /* @ts-ignore */
511
512
  ...(ngDevMode ? [{ debugName: "headerId" }] : /* istanbul ignore next */ []));
512
513
  computedAriaLabelledBy = computed(() => this.ariaLabelledBy() ?? this.headerId(), /* @ts-ignore */
513
514
  ...(ngDevMode ? [{ debugName: "computedAriaLabelledBy" }] : /* istanbul ignore next */ []));
@@ -569,12 +570,16 @@ class Dialog extends BaseComponent {
569
570
  ...(ngDevMode ? [{ debugName: "headlessT" }] : /* istanbul ignore next */ []));
570
571
  zIndexForLayering = signal(undefined, /* @ts-ignore */
571
572
  ...(ngDevMode ? [{ debugName: "zIndexForLayering" }] : /* istanbul ignore next */ []));
573
+ previouslyFocusedElement = null;
572
574
  get maximizeLabel() {
573
575
  return this.config.getTranslation(TranslationKeys.ARIA)['maximizeLabel'];
574
576
  }
575
577
  get minimizeLabel() {
576
578
  return this.config.getTranslation(TranslationKeys.ARIA)['minimizeLabel'];
577
579
  }
580
+ get closeLabel() {
581
+ return this.config.getTranslation(TranslationKeys.ARIA)['close'];
582
+ }
578
583
  zone = inject(NgZone);
579
584
  overlayService = inject(OverlayService);
580
585
  onInit() {
@@ -603,7 +608,14 @@ class Dialog extends BaseComponent {
603
608
  if (!focused) {
604
609
  focused = this._focus(this.headerViewChild()?.nativeElement);
605
610
  if (!focused) {
606
- this._focus(this.contentViewChild()?.nativeElement);
611
+ // nothing focusable inside: focus the dialog itself so focus does not stay behind the mask
612
+ const container = this.container();
613
+ if (container) {
614
+ container.setAttribute('tabindex', '-1');
615
+ this.zone.runOutsideAngular(() => {
616
+ setTimeout(() => container.focus(), 5);
617
+ });
618
+ }
607
619
  }
608
620
  }
609
621
  }
@@ -699,7 +711,6 @@ class Dialog extends BaseComponent {
699
711
  this.dragging.set(true);
700
712
  this.lastPageX.set(event.pageX);
701
713
  this.lastPageY.set(event.pageY);
702
- this.container().style.margin = '0';
703
714
  this.document.body.setAttribute('data-p-unselectable-text', 'true');
704
715
  !this.$unstyled() && addStyle(this.document.body, { 'user-select': 'none' });
705
716
  }
@@ -711,6 +722,8 @@ class Dialog extends BaseComponent {
711
722
  const deltaX = event.pageX - this.lastPageX();
712
723
  const deltaY = event.pageY - this.lastPageY();
713
724
  const offset = this.container().getBoundingClientRect();
725
+ // Drop the position margin only once the dialog really moves, so a plain header click does not shift it
726
+ this.container().style.margin = '0';
714
727
  const containerComputedStyle = getComputedStyle(this.container());
715
728
  const leftMargin = parseFloat(containerComputedStyle.marginLeft);
716
729
  const topMargin = parseFloat(containerComputedStyle.marginTop);
@@ -898,7 +911,7 @@ class Dialog extends BaseComponent {
898
911
  }
899
912
  appendContainer() {
900
913
  if (this.$appendTo() !== 'self') {
901
- appendChild(this.document.body, this.wrapper());
914
+ appendChild(this.$appendTo() || this.document.body, this.wrapper());
902
915
  }
903
916
  }
904
917
  restoreAppend() {
@@ -907,6 +920,7 @@ class Dialog extends BaseComponent {
907
920
  }
908
921
  }
909
922
  onBeforeEnter(event) {
923
+ this.previouslyFocusedElement = this.document.activeElement;
910
924
  this.container.set(event.element);
911
925
  this.wrapper.set(this.container()?.parentElement);
912
926
  this.$attrSelector && this.container()?.setAttribute(this.$attrSelector, '');
@@ -930,6 +944,13 @@ class Dialog extends BaseComponent {
930
944
  }
931
945
  }
932
946
  onAfterLeave() {
947
+ const container = this.container();
948
+ const previouslyFocusedElement = this.previouslyFocusedElement;
949
+ this.previouslyFocusedElement = null;
950
+ // return focus to the element that had it before the dialog opened, unless the app moved it elsewhere
951
+ if (previouslyFocusedElement?.isConnected && (!this.document.activeElement || this.document.activeElement === this.document.body || container?.contains(this.document.activeElement))) {
952
+ previouslyFocusedElement.focus();
953
+ }
933
954
  this.onContainerDestroy();
934
955
  this.renderDialog.set(false);
935
956
  if (this.modal()) {
@@ -956,9 +977,6 @@ class Dialog extends BaseComponent {
956
977
  if (this.modal()) {
957
978
  this.disableModality();
958
979
  }
959
- if (hasClass(this.document.body, 'p-overflow-hidden')) {
960
- removeClass(this.document.body, 'p-overflow-hidden');
961
- }
962
980
  if (this.container() && this.autoZIndex()) {
963
981
  ZIndexUtils.clear(this.container());
964
982
  }
@@ -1079,7 +1097,7 @@ class Dialog extends BaseComponent {
1079
1097
  <p-button
1080
1098
  [pt]="ptm('pcCloseButton')"
1081
1099
  [styleClass]="cx('pcCloseButton')"
1082
- [ariaLabel]="closeAriaLabel()"
1100
+ [ariaLabel]="closeAriaLabel() || closeButtonProps()?.ariaLabel || closeLabel"
1083
1101
  (onClick)="close($event)"
1084
1102
  (keydown.enter)="close($event)"
1085
1103
  [tabindex]="closeTabindex()"
@@ -1122,7 +1140,7 @@ class Dialog extends BaseComponent {
1122
1140
  }
1123
1141
  </div>
1124
1142
  }
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 });
1143
+ `, 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", "ariaExpanded", "ariaControls", "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 });
1126
1144
  }
1127
1145
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Dialog, decorators: [{
1128
1146
  type: Component,
@@ -1217,7 +1235,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1217
1235
  <p-button
1218
1236
  [pt]="ptm('pcCloseButton')"
1219
1237
  [styleClass]="cx('pcCloseButton')"
1220
- [ariaLabel]="closeAriaLabel()"
1238
+ [ariaLabel]="closeAriaLabel() || closeButtonProps()?.ariaLabel || closeLabel"
1221
1239
  (onClick)="close($event)"
1222
1240
  (keydown.enter)="close($event)"
1223
1241
  [tabindex]="closeTabindex()"