@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.
- package/fesm2022/exhaustive-ui-core-api.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +432 -376
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +240 -206
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +79 -71
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +109 -97
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +301 -323
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +943 -793
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +167 -127
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +485 -401
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +303 -259
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +6 -6
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +421 -333
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +426 -346
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +391 -337
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +337 -293
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +315 -325
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +11 -7
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/package.json +11 -11
- package/schematics/migrations.json +5 -5
- 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
|
-
|
|
1032
|
+
@if (_headlessTemplate() || headlessTemplate() || headlessT()) {
|
|
1033
1033
|
<ng-container *ngTemplateOutlet="_headlessTemplate() || headlessTemplate() || headlessT()"></ng-container>
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
<
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
<
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1097
|
-
<
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
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.
|
|
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
|
-
|
|
1170
|
+
@if (_headlessTemplate() || headlessTemplate() || headlessT()) {
|
|
1151
1171
|
<ng-container *ngTemplateOutlet="_headlessTemplate() || headlessTemplate() || headlessT()"></ng-container>
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
<
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
<
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1215
|
-
<
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
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>
|