@camaradesuk/m3e-angular 0.2.0-alpha.4 → 0.2.0-alpha.5
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/camaradesuk-m3e-angular.mjs +39 -11
- package/fesm2022/camaradesuk-m3e-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/styles/components/dialog/_index.scss +2 -0
- package/src/styles/styles.css +1 -0
- package/src/styles/styles.css.map +1 -1
- package/types/camaradesuk-m3e-angular.d.ts +27 -2
|
@@ -5193,6 +5193,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
|
|
|
5193
5193
|
const options$1 = matExpCreateOptions({
|
|
5194
5194
|
motion: 'system',
|
|
5195
5195
|
closeLabel: 'Close dialog',
|
|
5196
|
+
compactActions: 'header',
|
|
5196
5197
|
});
|
|
5197
5198
|
const MAT_EXP_DIALOG_OPTIONS = options$1.token;
|
|
5198
5199
|
const provideMatExpDialogOptions = options$1.provide;
|
|
@@ -5943,7 +5944,10 @@ class MatExpDialogRef {
|
|
|
5943
5944
|
get componentRef() {
|
|
5944
5945
|
return this._cdk.componentRef;
|
|
5945
5946
|
}
|
|
5946
|
-
/**
|
|
5947
|
+
/**
|
|
5948
|
+
* Blocks the user's dismissal gestures: Escape, backdrop clicks and the adaptive layout's close
|
|
5949
|
+
* button. Application close actions (`matExpDialogClose`, `close()`) still close.
|
|
5950
|
+
*/
|
|
5947
5951
|
disableClose;
|
|
5948
5952
|
/** @internal */
|
|
5949
5953
|
_state = MatDialogState.OPEN;
|
|
@@ -5956,6 +5960,8 @@ class MatExpDialogRef {
|
|
|
5956
5960
|
/** @internal */
|
|
5957
5961
|
_closing = new ReplaySubject(1);
|
|
5958
5962
|
/** @internal */
|
|
5963
|
+
_closeButtonClicks = new Subject();
|
|
5964
|
+
/** @internal */
|
|
5959
5965
|
constructor(
|
|
5960
5966
|
/** @internal */
|
|
5961
5967
|
_cdk,
|
|
@@ -5981,6 +5987,7 @@ class MatExpDialogRef {
|
|
|
5981
5987
|
this._state = MatDialogState.CLOSED;
|
|
5982
5988
|
this._opened.complete();
|
|
5983
5989
|
this._closing.complete();
|
|
5990
|
+
this._closeButtonClicks.complete();
|
|
5984
5991
|
});
|
|
5985
5992
|
_cdk.backdropClick.subscribe(() => {
|
|
5986
5993
|
if (!this.disableClose)
|
|
@@ -6031,6 +6038,19 @@ class MatExpDialogRef {
|
|
|
6031
6038
|
backdropClick() {
|
|
6032
6039
|
return this._cdk.backdropClick;
|
|
6033
6040
|
}
|
|
6041
|
+
/**
|
|
6042
|
+
* Clicks on the adaptive layout's close button. Like `backdropClick()`, it emits whether or not
|
|
6043
|
+
* `disableClose` blocked the close, so an app can route a blocked click to its own handler.
|
|
6044
|
+
*/
|
|
6045
|
+
closeButtonClick() {
|
|
6046
|
+
return this._closeButtonClicks.asObservable();
|
|
6047
|
+
}
|
|
6048
|
+
/** @internal The adaptive close button is a dismissal gesture, like Escape and the backdrop. */
|
|
6049
|
+
_closeButtonClick(event) {
|
|
6050
|
+
this._closeButtonClicks.next(event);
|
|
6051
|
+
if (!this.disableClose)
|
|
6052
|
+
this._close(undefined, event.detail ? 'mouse' : 'keyboard');
|
|
6053
|
+
}
|
|
6034
6054
|
/** Native overlay keyboard events. */
|
|
6035
6055
|
keydownEvents() {
|
|
6036
6056
|
return this._cdk.keydownEvents;
|
|
@@ -6550,11 +6570,11 @@ class MatExpDialogContainer extends CdkDialogContainer {
|
|
|
6550
6570
|
super.ngOnDestroy();
|
|
6551
6571
|
}
|
|
6552
6572
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpDialogContainer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
6553
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.3", type: MatExpDialogContainer, isStandalone: true, selector: "mat-exp-dialog-container", host: { styleAttribute: "visibility: hidden", classAttribute: "mat-exp-dialog-container" }, usesInheritance: true, ngImport: i0, template: '<div class="mat-exp-dialog-surface"><div class="mat-exp-dialog-content-viewport"><ng-template cdkPortalOutlet /></div></div>', isInline: true, styles: [".mat-exp-dialog-panel{--mat-dialog-container-color: var(--mat-sys-surface-container-high);--mat-dialog-container-min-width: min(280px, 100vw - 32px);--mat-dialog-actions-padding: 1.5rem;--mat-dialog-content-padding: 1.5rem;--mat-dialog-with-actions-content-padding: 1.5rem 1.5rem 0;max-height:calc(100dvh - 48px)}.mat-exp-dialog-panel.mat-exp-dialog-adaptive{width:min(560px,100% - 32px)}@media(max-width:599px){.mat-exp-dialog-panel.mat-exp-dialog-adaptive{--mat-dialog-container-shape: 0;--mat-dialog-container-min-width: 0;--mat-dialog-container-max-width: 100%;--mat-dialog-container-small-max-width: 100%;width:100%;min-width:0;max-width:100%;height:100dvh;max-height:100dvh}}.mat-exp-dialog-no-motion *{transition-duration:0s!important;animation-duration:0s!important}@media(prefers-reduced-motion:reduce){.mat-exp-dialog-panel *,.mat-exp-dialog-backdrop{transition-duration:0s!important;animation-duration:0s!important}}.mat-exp-dialog-panel{min-width:var(--mat-dialog-container-min-width, min(280px, 100vw - 32px));max-width:var(--mat-dialog-container-max-width, min(560px, 100vw - 32px))}.mat-exp-dialog-container,.mat-exp-dialog-surface,.mat-exp-dialog-content-viewport{display:block;box-sizing:border-box;width:100%;height:100%;max-height:inherit;min-height:0}.mat-exp-dialog-container{outline:none}.mat-exp-dialog-surface{position:relative;overflow:hidden;background:var(--mat-dialog-container-color, var(--mat-sys-surface-container-high));color:var(--mat-sys-on-surface);border-radius:var(--mat-dialog-container-shape, 28px);transform-origin:top left;box-shadow:var(--mat-sys-level3)}.mat-exp-dialog-component-host{display:contents}.mat-exp-dialog-content-viewport{display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6573
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.3", type: MatExpDialogContainer, isStandalone: true, selector: "mat-exp-dialog-container", host: { styleAttribute: "visibility: hidden", classAttribute: "mat-exp-dialog-container" }, usesInheritance: true, ngImport: i0, template: '<div class="mat-exp-dialog-surface"><div class="mat-exp-dialog-content-viewport"><ng-template cdkPortalOutlet /></div></div>', isInline: true, styles: [".mat-exp-dialog-panel{--mat-dialog-container-color: var(--mat-sys-surface-container-high);--mat-dialog-container-shape: var(--mat-sys-corner-extra-large);--mat-dialog-container-min-width: min(280px, 100vw - 32px);--mat-dialog-actions-padding: 1.5rem;--mat-dialog-content-padding: 1.5rem;--mat-dialog-with-actions-content-padding: 1.5rem 1.5rem 0;max-height:calc(100dvh - 48px)}.mat-exp-dialog-panel.mat-exp-dialog-adaptive{width:min(560px,100% - 32px)}@media(max-width:599px){.mat-exp-dialog-panel.mat-exp-dialog-adaptive{--mat-dialog-container-shape: 0;--mat-dialog-container-min-width: 0;--mat-dialog-container-max-width: 100%;--mat-dialog-container-small-max-width: 100%;width:100%;min-width:0;max-width:100%;height:100dvh;max-height:100dvh}}.mat-exp-dialog-no-motion *{transition-duration:0s!important;animation-duration:0s!important}@media(prefers-reduced-motion:reduce){.mat-exp-dialog-panel *,.mat-exp-dialog-backdrop{transition-duration:0s!important;animation-duration:0s!important}}.mat-exp-dialog-panel{min-width:var(--mat-dialog-container-min-width, min(280px, 100vw - 32px));max-width:var(--mat-dialog-container-max-width, min(560px, 100vw - 32px))}.mat-exp-dialog-container,.mat-exp-dialog-surface,.mat-exp-dialog-content-viewport{display:block;box-sizing:border-box;width:100%;height:100%;max-height:inherit;min-height:0}.mat-exp-dialog-container{outline:none}.mat-exp-dialog-surface{position:relative;overflow:hidden;background:var(--mat-dialog-container-color, var(--mat-sys-surface-container-high));color:var(--mat-sys-on-surface);border-radius:var(--mat-dialog-container-shape, 28px);transform-origin:top left;box-shadow:var(--mat-sys-level3)}.mat-exp-dialog-component-host{display:contents}.mat-exp-dialog-content-viewport{display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6554
6574
|
}
|
|
6555
6575
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpDialogContainer, decorators: [{
|
|
6556
6576
|
type: Component,
|
|
6557
|
-
args: [{ selector: 'mat-exp-dialog-container', imports: [CdkPortalOutlet], template: '<div class="mat-exp-dialog-surface"><div class="mat-exp-dialog-content-viewport"><ng-template cdkPortalOutlet /></div></div>', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mat-exp-dialog-container', style: 'visibility: hidden' }, styles: [".mat-exp-dialog-panel{--mat-dialog-container-color: var(--mat-sys-surface-container-high);--mat-dialog-container-min-width: min(280px, 100vw - 32px);--mat-dialog-actions-padding: 1.5rem;--mat-dialog-content-padding: 1.5rem;--mat-dialog-with-actions-content-padding: 1.5rem 1.5rem 0;max-height:calc(100dvh - 48px)}.mat-exp-dialog-panel.mat-exp-dialog-adaptive{width:min(560px,100% - 32px)}@media(max-width:599px){.mat-exp-dialog-panel.mat-exp-dialog-adaptive{--mat-dialog-container-shape: 0;--mat-dialog-container-min-width: 0;--mat-dialog-container-max-width: 100%;--mat-dialog-container-small-max-width: 100%;width:100%;min-width:0;max-width:100%;height:100dvh;max-height:100dvh}}.mat-exp-dialog-no-motion *{transition-duration:0s!important;animation-duration:0s!important}@media(prefers-reduced-motion:reduce){.mat-exp-dialog-panel *,.mat-exp-dialog-backdrop{transition-duration:0s!important;animation-duration:0s!important}}.mat-exp-dialog-panel{min-width:var(--mat-dialog-container-min-width, min(280px, 100vw - 32px));max-width:var(--mat-dialog-container-max-width, min(560px, 100vw - 32px))}.mat-exp-dialog-container,.mat-exp-dialog-surface,.mat-exp-dialog-content-viewport{display:block;box-sizing:border-box;width:100%;height:100%;max-height:inherit;min-height:0}.mat-exp-dialog-container{outline:none}.mat-exp-dialog-surface{position:relative;overflow:hidden;background:var(--mat-dialog-container-color, var(--mat-sys-surface-container-high));color:var(--mat-sys-on-surface);border-radius:var(--mat-dialog-container-shape, 28px);transform-origin:top left;box-shadow:var(--mat-sys-level3)}.mat-exp-dialog-component-host{display:contents}.mat-exp-dialog-content-viewport{display:flex;flex-direction:column}\n"] }]
|
|
6577
|
+
args: [{ selector: 'mat-exp-dialog-container', imports: [CdkPortalOutlet], template: '<div class="mat-exp-dialog-surface"><div class="mat-exp-dialog-content-viewport"><ng-template cdkPortalOutlet /></div></div>', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mat-exp-dialog-container', style: 'visibility: hidden' }, styles: [".mat-exp-dialog-panel{--mat-dialog-container-color: var(--mat-sys-surface-container-high);--mat-dialog-container-shape: var(--mat-sys-corner-extra-large);--mat-dialog-container-min-width: min(280px, 100vw - 32px);--mat-dialog-actions-padding: 1.5rem;--mat-dialog-content-padding: 1.5rem;--mat-dialog-with-actions-content-padding: 1.5rem 1.5rem 0;max-height:calc(100dvh - 48px)}.mat-exp-dialog-panel.mat-exp-dialog-adaptive{width:min(560px,100% - 32px)}@media(max-width:599px){.mat-exp-dialog-panel.mat-exp-dialog-adaptive{--mat-dialog-container-shape: 0;--mat-dialog-container-min-width: 0;--mat-dialog-container-max-width: 100%;--mat-dialog-container-small-max-width: 100%;width:100%;min-width:0;max-width:100%;height:100dvh;max-height:100dvh}}.mat-exp-dialog-no-motion *{transition-duration:0s!important;animation-duration:0s!important}@media(prefers-reduced-motion:reduce){.mat-exp-dialog-panel *,.mat-exp-dialog-backdrop{transition-duration:0s!important;animation-duration:0s!important}}.mat-exp-dialog-panel{min-width:var(--mat-dialog-container-min-width, min(280px, 100vw - 32px));max-width:var(--mat-dialog-container-max-width, min(560px, 100vw - 32px))}.mat-exp-dialog-container,.mat-exp-dialog-surface,.mat-exp-dialog-content-viewport{display:block;box-sizing:border-box;width:100%;height:100%;max-height:inherit;min-height:0}.mat-exp-dialog-container{outline:none}.mat-exp-dialog-surface{position:relative;overflow:hidden;background:var(--mat-dialog-container-color, var(--mat-sys-surface-container-high));color:var(--mat-sys-on-surface);border-radius:var(--mat-dialog-container-shape, 28px);transform-origin:top left;box-shadow:var(--mat-sys-level3)}.mat-exp-dialog-component-host{display:contents}.mat-exp-dialog-content-viewport{display:flex;flex-direction:column}\n"] }]
|
|
6558
6578
|
}] });
|
|
6559
6579
|
|
|
6560
6580
|
/** Explicit close action for content opened by MatExpDialog. */
|
|
@@ -6604,16 +6624,18 @@ class MatExpDialogLayout {
|
|
|
6604
6624
|
/** @internal */
|
|
6605
6625
|
_context = inject(MAT_EXP_DIALOG_CONTEXT);
|
|
6606
6626
|
/** @internal */
|
|
6627
|
+
_ref = inject(MatExpDialogRef);
|
|
6628
|
+
/** @internal */
|
|
6607
6629
|
_actions = contentChild(MatExpDialogActions, /* @ts-ignore */
|
|
6608
6630
|
...(ngDevMode ? [{ debugName: "_actions" }] : /* istanbul ignore next */ []));
|
|
6609
6631
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpDialogLayout, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6610
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.3", type: MatExpDialogLayout, isStandalone: true, selector: "mat-exp-dialog-layout", host: { properties: { "attr.data-mode": "_context.mode" } }, queries: [{ propertyName: "_actions", first: true, predicate: MatExpDialogActions, descendants: true, isSignal: true }], exportAs: ["matExpDialogLayout"], ngImport: i0, template: `
|
|
6632
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.3", type: MatExpDialogLayout, isStandalone: true, selector: "mat-exp-dialog-layout", host: { properties: { "attr.data-mode": "_context.mode", "attr.data-compact-actions": "_context.mode === 'adaptive' ? _context.compactActions : null" } }, queries: [{ propertyName: "_actions", first: true, predicate: MatExpDialogActions, descendants: true, isSignal: true }], exportAs: ["matExpDialogLayout"], ngImport: i0, template: `
|
|
6611
6633
|
@if (_context.mode === 'adaptive') {
|
|
6612
6634
|
<button
|
|
6613
6635
|
type="button"
|
|
6614
6636
|
matIconButton
|
|
6615
|
-
matExpDialogClose
|
|
6616
6637
|
class="mat-exp-dialog-close"
|
|
6638
|
+
(click)="_ref._closeButtonClick($event)"
|
|
6617
6639
|
[attr.aria-label]="_context.closeLabel"
|
|
6618
6640
|
>
|
|
6619
6641
|
<svg aria-hidden="true" focusable="false" width="24" height="24" viewBox="0 0 24 24">
|
|
@@ -6631,17 +6653,17 @@ class MatExpDialogLayout {
|
|
|
6631
6653
|
<ng-container [ngTemplateOutlet]="actions.template" />
|
|
6632
6654
|
</div>
|
|
6633
6655
|
}
|
|
6634
|
-
`, isInline: true, styles: ["mat-exp-dialog-layout{display:grid;grid-template:\"heading close\" auto \"body body\" minmax(0,1fr) \"actions actions\" auto/1fr auto;min-height:0;max-height:inherit;height:100%}mat-exp-dialog-layout>.mat-exp-dialog-heading{grid-area:heading;margin:0;min-width:0;overflow-wrap:anywhere}mat-exp-dialog-layout>.mat-exp-dialog-body{grid-area:body;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}mat-exp-dialog-layout>.mat-exp-dialog-actions{grid-area:actions}mat-exp-dialog-layout>.mat-exp-dialog-close{grid-area:close;align-self:center;margin-inline-end:16px}@media(max-width:599px){.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]{grid-template:\"close heading actions\" auto \"body body body\" minmax(0,1fr)/auto minmax(0,1fr) auto;padding-top:env(safe-area-inset-top,0px)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-close{grid-area:close;display:inline-flex;align-self:center;margin-inline-start:max(8px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-heading{align-self:center;padding:.75rem .5rem;font:var(--mat-sys-title-large)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-heading:before{display:none}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-actions{align-self:center;min-height:3.5rem;padding:0;padding-inline-end:max(8px,env(safe-area-inset-right,0px));border:0;flex-wrap:wrap;max-width:45vw}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:dir(rtl)>.mat-exp-dialog-close{margin-inline-start:max(8px,env(safe-area-inset-right,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:dir(rtl)>.mat-exp-dialog-actions{padding-inline-end:max(8px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-body{padding-top:1.5rem;padding-bottom:max(24px,env(safe-area-inset-bottom,0px))}}mat-exp-dialog-layout>.mat-exp-dialog-heading{padding:24px 24px 16px;color:var(--mat-sys-on-surface);font:var(--mat-sys-headline-small)}mat-exp-dialog-layout>.mat-exp-dialog-body{padding:0 24px;color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-body-medium)}mat-exp-dialog-layout>.mat-exp-dialog-body>:first-child{margin-top:0}mat-exp-dialog-layout>.mat-exp-dialog-body>:last-child{margin-bottom:0}mat-exp-dialog-layout>.mat-exp-dialog-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:24px}\n"], dependencies: [{ kind: "
|
|
6656
|
+
`, isInline: true, styles: ["mat-exp-dialog-layout{display:grid;grid-template:\"heading close\" auto \"body body\" minmax(0,1fr) \"actions actions\" auto/1fr auto;min-height:0;max-height:inherit;height:100%}mat-exp-dialog-layout>.mat-exp-dialog-heading{grid-area:heading;margin:0;min-width:0;overflow-wrap:anywhere}mat-exp-dialog-layout>.mat-exp-dialog-body{grid-area:body;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}mat-exp-dialog-layout>.mat-exp-dialog-actions{grid-area:actions}mat-exp-dialog-layout>.mat-exp-dialog-close{grid-area:close;align-self:center;margin-inline-end:16px}mat-exp-dialog-layout>.mat-exp-dialog-close.cdk-program-focused:not(:focus-visible,:hover)>.mat-mdc-button-persistent-ripple:before{opacity:0}@media(max-width:599px){.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]{grid-template:\"close heading actions\" auto \"body body body\" minmax(0,1fr)/auto minmax(0,1fr) auto;padding-top:env(safe-area-inset-top,0px)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-close{grid-area:close;display:inline-flex;align-self:center;margin-inline-start:max(8px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-heading{align-self:center;padding:.75rem .5rem;font:var(--mat-sys-title-large)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-heading:before{display:none}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-actions{align-self:center;min-height:3.5rem;padding:0;padding-inline-end:max(8px,env(safe-area-inset-right,0px));border:0;flex-wrap:wrap;max-width:45vw}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:dir(rtl)>.mat-exp-dialog-close{margin-inline-start:max(8px,env(safe-area-inset-right,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:dir(rtl)>.mat-exp-dialog-actions{padding-inline-end:max(8px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-body{padding-top:1.5rem;padding-bottom:max(24px,env(safe-area-inset-bottom,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]{grid-template:\"close heading\" auto \"body body\" minmax(0,1fr) \"actions actions\" auto/auto minmax(0,1fr)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]>.mat-exp-dialog-heading{padding-inline-end:max(16px,env(safe-area-inset-right,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]>.mat-exp-dialog-actions{align-self:stretch;max-width:none;min-height:0;padding:1rem max(24px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(24px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]>.mat-exp-dialog-body{padding-bottom:1.5rem}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]:dir(rtl)>.mat-exp-dialog-heading{padding-inline-end:max(16px,env(safe-area-inset-left,0px))}}mat-exp-dialog-layout>.mat-exp-dialog-heading{padding:24px 24px 16px;color:var(--mat-sys-on-surface);font:var(--mat-sys-headline-small)}mat-exp-dialog-layout>.mat-exp-dialog-body{padding:0 24px;color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-body-medium)}mat-exp-dialog-layout>.mat-exp-dialog-body>:first-child{margin-top:0}mat-exp-dialog-layout>.mat-exp-dialog-body>:last-child{margin-bottom:0}mat-exp-dialog-layout>.mat-exp-dialog-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:24px}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6635
6657
|
}
|
|
6636
6658
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpDialogLayout, decorators: [{
|
|
6637
6659
|
type: Component,
|
|
6638
|
-
args: [{ selector: 'mat-exp-dialog-layout', exportAs: 'matExpDialogLayout', imports: [
|
|
6660
|
+
args: [{ selector: 'mat-exp-dialog-layout', exportAs: 'matExpDialogLayout', imports: [MatButtonModule, NgTemplateOutlet], template: `
|
|
6639
6661
|
@if (_context.mode === 'adaptive') {
|
|
6640
6662
|
<button
|
|
6641
6663
|
type="button"
|
|
6642
6664
|
matIconButton
|
|
6643
|
-
matExpDialogClose
|
|
6644
6665
|
class="mat-exp-dialog-close"
|
|
6666
|
+
(click)="_ref._closeButtonClick($event)"
|
|
6645
6667
|
[attr.aria-label]="_context.closeLabel"
|
|
6646
6668
|
>
|
|
6647
6669
|
<svg aria-hidden="true" focusable="false" width="24" height="24" viewBox="0 0 24 24">
|
|
@@ -6659,7 +6681,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
|
|
|
6659
6681
|
<ng-container [ngTemplateOutlet]="actions.template" />
|
|
6660
6682
|
</div>
|
|
6661
6683
|
}
|
|
6662
|
-
`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
6684
|
+
`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
6685
|
+
'[attr.data-mode]': '_context.mode',
|
|
6686
|
+
'[attr.data-compact-actions]': "_context.mode === 'adaptive' ? _context.compactActions : null",
|
|
6687
|
+
}, styles: ["mat-exp-dialog-layout{display:grid;grid-template:\"heading close\" auto \"body body\" minmax(0,1fr) \"actions actions\" auto/1fr auto;min-height:0;max-height:inherit;height:100%}mat-exp-dialog-layout>.mat-exp-dialog-heading{grid-area:heading;margin:0;min-width:0;overflow-wrap:anywhere}mat-exp-dialog-layout>.mat-exp-dialog-body{grid-area:body;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}mat-exp-dialog-layout>.mat-exp-dialog-actions{grid-area:actions}mat-exp-dialog-layout>.mat-exp-dialog-close{grid-area:close;align-self:center;margin-inline-end:16px}mat-exp-dialog-layout>.mat-exp-dialog-close.cdk-program-focused:not(:focus-visible,:hover)>.mat-mdc-button-persistent-ripple:before{opacity:0}@media(max-width:599px){.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]{grid-template:\"close heading actions\" auto \"body body body\" minmax(0,1fr)/auto minmax(0,1fr) auto;padding-top:env(safe-area-inset-top,0px)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-close{grid-area:close;display:inline-flex;align-self:center;margin-inline-start:max(8px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-heading{align-self:center;padding:.75rem .5rem;font:var(--mat-sys-title-large)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-heading:before{display:none}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-actions{align-self:center;min-height:3.5rem;padding:0;padding-inline-end:max(8px,env(safe-area-inset-right,0px));border:0;flex-wrap:wrap;max-width:45vw}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:dir(rtl)>.mat-exp-dialog-close{margin-inline-start:max(8px,env(safe-area-inset-right,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:dir(rtl)>.mat-exp-dialog-actions{padding-inline-end:max(8px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-body{padding-top:1.5rem;padding-bottom:max(24px,env(safe-area-inset-bottom,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]{grid-template:\"close heading\" auto \"body body\" minmax(0,1fr) \"actions actions\" auto/auto minmax(0,1fr)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]>.mat-exp-dialog-heading{padding-inline-end:max(16px,env(safe-area-inset-right,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]>.mat-exp-dialog-actions{align-self:stretch;max-width:none;min-height:0;padding:1rem max(24px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(24px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]>.mat-exp-dialog-body{padding-bottom:1.5rem}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]:dir(rtl)>.mat-exp-dialog-heading{padding-inline-end:max(16px,env(safe-area-inset-left,0px))}}mat-exp-dialog-layout>.mat-exp-dialog-heading{padding:24px 24px 16px;color:var(--mat-sys-on-surface);font:var(--mat-sys-headline-small)}mat-exp-dialog-layout>.mat-exp-dialog-body{padding:0 24px;color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-body-medium)}mat-exp-dialog-layout>.mat-exp-dialog-body>:first-child{margin-top:0}mat-exp-dialog-layout>.mat-exp-dialog-body>:last-child{margin-bottom:0}mat-exp-dialog-layout>.mat-exp-dialog-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:24px}\n"] }]
|
|
6663
6688
|
}], propDecorators: { _actions: [{ type: i0.ContentChild, args: [i0.forwardRef(() => MatExpDialogActions), { isSignal: true }] }] } });
|
|
6664
6689
|
|
|
6665
6690
|
/** @internal Built-in content for the one-call plain-text confirmation. */
|
|
@@ -6758,9 +6783,11 @@ class MatExpDialog {
|
|
|
6758
6783
|
if (config.mode === 'alert' && (!config.role || !config.ariaDescribedBy?.trim())) {
|
|
6759
6784
|
throw new Error('Alert mode requires an explicit role and ariaDescribedBy.');
|
|
6760
6785
|
}
|
|
6761
|
-
const { mode, title, motion = this._options.motion, closeLabel = this._options.closeLabel, origin, ...native } = config;
|
|
6786
|
+
const { mode, title, motion = this._options.motion, closeLabel = this._options.closeLabel, origin, compactActions = this._options.compactActions, ...native } = config;
|
|
6762
6787
|
if (mode === 'adaptive' && !closeLabel.trim())
|
|
6763
6788
|
throw new Error('Adaptive mode requires a non-empty closeLabel.');
|
|
6789
|
+
if (compactActions !== 'header' && compactActions !== 'footer')
|
|
6790
|
+
throw new Error("compactActions must be 'header' or 'footer'.");
|
|
6764
6791
|
const effective = { ...this._nativeDefaults, ...native };
|
|
6765
6792
|
const classes = (value) => typeof value === 'string' ? [value] : (value ?? []);
|
|
6766
6793
|
const injector = Injector.create({
|
|
@@ -6768,7 +6795,7 @@ class MatExpDialog {
|
|
|
6768
6795
|
providers: [
|
|
6769
6796
|
{
|
|
6770
6797
|
provide: MAT_EXP_DIALOG_CONTEXT,
|
|
6771
|
-
useValue: { mode, title, closeLabel, motion, origin },
|
|
6798
|
+
useValue: { mode, title, closeLabel, motion, origin, compactActions },
|
|
6772
6799
|
},
|
|
6773
6800
|
],
|
|
6774
6801
|
});
|
|
@@ -6782,6 +6809,7 @@ class MatExpDialog {
|
|
|
6782
6809
|
motion,
|
|
6783
6810
|
closeLabel,
|
|
6784
6811
|
origin,
|
|
6812
|
+
...(mode === 'adaptive' ? { compactActions } : {}),
|
|
6785
6813
|
};
|
|
6786
6814
|
this._dialog.open(component, {
|
|
6787
6815
|
...effective,
|