@coolon/angular-ui-powerups 16.1.0-alpha.310 → 16.1.0-alpha.312
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/assets/activities/activities.scss +14 -4
- package/assets/interaction.scss +19 -0
- package/esm2022/lib/components/commands/button-renderer/button-renderer.component.mjs +20 -3
- package/esm2022/lib/components/commands/command/command.component.mjs +25 -3
- package/esm2022/lib/components/commands/group/popup-menu/more-menu.component.mjs +1 -1
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +1 -1
- package/esm2022/lib/components/forms/password-input/password-input.component.mjs +1 -1
- package/esm2022/lib/components/forms/string-input/string-input.component.mjs +1 -1
- package/esm2022/lib/components/forms/sub-form-list/sub-form-list.component.mjs +1 -1
- package/esm2022/lib/components/tables/filter/table-filter-model.mjs +18 -5
- package/esm2022/lib/components/tables/renderer/table-action-column/table-action-column.component.mjs +1 -1
- package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +1 -1
- package/esm2022/lib/interaction/components/activity-body/activity-body.component.mjs +12 -2
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +8 -4
- package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +1 -1
- package/esm2022/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.mjs +1 -1
- package/esm2022/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.mjs +1 -1
- package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +1 -1
- package/esm2022/lib/interaction/components/alert-renderer/alert-renderer.component.mjs +1 -1
- package/esm2022/lib/interaction/components/confirm-renderer/confirm-renderer.component.mjs +1 -1
- package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +1 -1
- package/esm2022/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.mjs +4 -2
- package/esm2022/lib/interaction/exports.mjs +4 -1
- package/esm2022/lib/interaction/interaction.module.mjs +5 -1
- package/esm2022/lib/interaction/services/hosted-interaction-context.mjs +93 -0
- package/esm2022/lib/interaction/services/interaction.service.mjs +7 -4
- package/esm2022/lib/interaction/services/mat-bottom-sheet-interaction/bottom-sheet-interaction-context-factory.mjs +38 -0
- package/esm2022/lib/interaction/services/mat-bottom-sheet-interaction/bottom-sheet-interaction-context.mjs +39 -0
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +17 -86
- package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +48 -13
- package/esm2022/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.mjs +22 -2
- package/esm2022/lib/place/place-router.mjs +5 -2
- package/fesm2022/coolon-angular-ui-powerups.mjs +302 -78
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/commands/button-renderer/button-renderer.component.d.ts +6 -1
- package/lib/components/commands/command/command.component.d.ts +14 -1
- package/lib/components/tables/filter/table-filter-model.d.ts +5 -0
- package/lib/interaction/components/activity-body/activity-body.component.d.ts +6 -1
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +6 -0
- package/lib/interaction/exports.d.ts +3 -0
- package/lib/interaction/interaction.module.d.ts +12 -11
- package/lib/interaction/services/hosted-interaction-context.d.ts +42 -0
- package/lib/interaction/services/interaction.service.d.ts +5 -2
- package/lib/interaction/services/mat-bottom-sheet-interaction/bottom-sheet-interaction-context-factory.d.ts +18 -0
- package/lib/interaction/services/mat-bottom-sheet-interaction/bottom-sheet-interaction-context.d.ts +14 -0
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +4 -16
- package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +21 -4
- package/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.d.ts +9 -0
- package/package.json +1 -1
|
@@ -57,6 +57,8 @@ import ResizeObserver from 'resize-observer-polyfill';
|
|
|
57
57
|
import { generateKeyBetween } from 'fractional-indexing';
|
|
58
58
|
import * as i5$1 from '@angular/cdk/a11y';
|
|
59
59
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
60
|
+
import * as i1$8 from '@angular/material/bottom-sheet';
|
|
61
|
+
import { MatBottomSheetModule } from '@angular/material/bottom-sheet';
|
|
60
62
|
import * as i1$7 from '@angular/material/dialog';
|
|
61
63
|
import { MatDialogModule, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
|
|
62
64
|
import * as i1$5 from '@angular/router';
|
|
@@ -1440,6 +1442,13 @@ class ButtonRendererComponent extends PopupAwareComponent {
|
|
|
1440
1442
|
densityArea = inject(DensityDirective, { optional: true });
|
|
1441
1443
|
/** How much room the button takes (see {@link Density}): its own, else its area's. */
|
|
1442
1444
|
density;
|
|
1445
|
+
/** Whether the button fills the renderer's box (see `CommandComponent.fill`). */
|
|
1446
|
+
fill = false;
|
|
1447
|
+
/** What the label does in a box narrower than it (see `CommandComponent.labelOverflow`). */
|
|
1448
|
+
labelOverflow = 'visible';
|
|
1449
|
+
get ellipsis() {
|
|
1450
|
+
return this.labelOverflow === 'ellipsis';
|
|
1451
|
+
}
|
|
1443
1452
|
get dense() {
|
|
1444
1453
|
return this.resolvedDensity === 'dense';
|
|
1445
1454
|
}
|
|
@@ -1478,7 +1487,7 @@ class ButtonRendererComponent extends PopupAwareComponent {
|
|
|
1478
1487
|
this.matControl.focus();
|
|
1479
1488
|
}
|
|
1480
1489
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ButtonRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1481
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ButtonRendererComponent, selector: "aup-button-renderer", inputs: { faces$: "faces$", faces: "faces", enabled$: "enabled$", enabled: "enabled", busy$: "busy$", busy: "busy", alignFace: "alignFace", forceRenderAsButton: "forceRenderAsButton", density: "density" }, host: { properties: { "class": "this.alignFace", "class.dense": "this.dense", "class.compact": "this.compact", "class.in-popup": "this.renderAsMenuItem" } }, viewQueries: [{ propertyName: "matControl", first: true, predicate: ["button"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!renderAsMenuItem\">\n <ng-container *ngIf=\"iconOnly$.value\">\n <button #button mat-icon-button [color]=\"color$.value\" [disabled]=\"!enabled\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngIf=\"!iconOnly$.value\">\n <ng-container [ngSwitch]=\"buttonStyle$.value\">\n <ng-container *ngSwitchCase=\"CommandFaceUtils.Style.STROKED\">\n <button #button mat-stroked-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"CommandFaceUtils.Style.RAISED\">\n <button #button mat-raised-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button #button mat-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n </ng-container>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"renderAsMenuItem\">\n <button #button mat-menu-item [disabled]=\"!enabled\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n</ng-container>\n", styles: [":host{display:inline-flex;flex-direction:row;justify-content:stretch}:host.in-popup{display:contents}:host button{flex:1}:host.centered button{text-align:center}:host.start button{text-align:start}:host.end button{text-align:end}:host.dense button.mat-mdc-icon-button{--mdc-icon-button-state-layer-size: 32px;--aup-icon-size: 20px;width:32px;height:32px;padding:4px;line-height:0}:host.dense button:not(.mat-mdc-icon-button){height:32px}:host.compact button.mat-mdc-icon-button{--mdc-icon-button-state-layer-size: 28px;--aup-icon-size: 18px;width:28px;height:28px;padding:0;line-height:0}:host.compact button:not(.mat-mdc-icon-button){height:28px;padding:0 8px;min-width:0;font-size:
|
|
1490
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ButtonRendererComponent, selector: "aup-button-renderer", inputs: { faces$: "faces$", faces: "faces", enabled$: "enabled$", enabled: "enabled", busy$: "busy$", busy: "busy", alignFace: "alignFace", forceRenderAsButton: "forceRenderAsButton", density: "density", fill: "fill", labelOverflow: "labelOverflow" }, host: { properties: { "class": "this.alignFace", "class.fill": "this.fill", "class.ellipsis": "this.ellipsis", "class.dense": "this.dense", "class.compact": "this.compact", "class.in-popup": "this.renderAsMenuItem" } }, viewQueries: [{ propertyName: "matControl", first: true, predicate: ["button"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!renderAsMenuItem\">\n <ng-container *ngIf=\"iconOnly$.value\">\n <button #button mat-icon-button [color]=\"color$.value\" [disabled]=\"!enabled\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngIf=\"!iconOnly$.value\">\n <ng-container [ngSwitch]=\"buttonStyle$.value\">\n <ng-container *ngSwitchCase=\"CommandFaceUtils.Style.STROKED\">\n <button #button mat-stroked-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"CommandFaceUtils.Style.RAISED\">\n <button #button mat-raised-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button #button mat-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n </ng-container>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"renderAsMenuItem\">\n <button #button mat-menu-item [disabled]=\"!enabled\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n</ng-container>\n", styles: [":host{display:inline-flex;flex-direction:row;justify-content:stretch}:host.in-popup{display:contents}:host button{flex:1}:host.centered button{text-align:center}:host.start button{text-align:start}:host.end button{text-align:end}:host.fill{align-self:stretch}:host.fill button{width:100%;min-width:0;border-radius:0}:host.fill button.mat-mdc-icon-button{height:100%;padding:0}:host.fill ::ng-deep .mat-mdc-button-persistent-ripple,:host.fill ::ng-deep .mat-mdc-button-ripple,:host.fill ::ng-deep .mat-mdc-focus-indicator{border-radius:0}:host.fill.start button{justify-content:flex-start}:host.fill.end button{justify-content:flex-end}:host.ellipsis{min-width:0;max-width:100%}:host.ellipsis button,:host.ellipsis ::ng-deep .mdc-button__label,:host.ellipsis ::ng-deep aup-command-face,:host.ellipsis ::ng-deep .face-container{min-width:0;max-width:100%}:host.ellipsis ::ng-deep .face-container>span{overflow:hidden;text-overflow:ellipsis}:host button.cdk-program-focused:not(:hover) ::ng-deep .mat-mdc-button-persistent-ripple:before{opacity:0}:host.dense button.mat-mdc-icon-button{--mdc-icon-button-state-layer-size: 32px;--aup-icon-size: 20px;width:32px;height:32px;padding:4px;line-height:0}:host.dense button:not(.mat-mdc-icon-button){height:32px}:host.compact button.mat-mdc-icon-button{--mdc-icon-button-state-layer-size: 28px;--aup-icon-size: 18px;width:28px;height:28px;padding:0;line-height:0}:host.compact button:not(.mat-mdc-icon-button){height:28px;padding:0 8px;min-width:0;font-size:min(1em,14px);letter-spacing:.0892857143em}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i2$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }] });
|
|
1482
1491
|
}
|
|
1483
1492
|
__decorate([
|
|
1484
1493
|
Proxify(),
|
|
@@ -1506,7 +1515,7 @@ __decorate([
|
|
|
1506
1515
|
], ButtonRendererComponent.prototype, "busy", null);
|
|
1507
1516
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ButtonRendererComponent, decorators: [{
|
|
1508
1517
|
type: Component,
|
|
1509
|
-
args: [{ selector: 'aup-button-renderer', template: "<ng-container *ngIf=\"!renderAsMenuItem\">\n <ng-container *ngIf=\"iconOnly$.value\">\n <button #button mat-icon-button [color]=\"color$.value\" [disabled]=\"!enabled\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngIf=\"!iconOnly$.value\">\n <ng-container [ngSwitch]=\"buttonStyle$.value\">\n <ng-container *ngSwitchCase=\"CommandFaceUtils.Style.STROKED\">\n <button #button mat-stroked-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"CommandFaceUtils.Style.RAISED\">\n <button #button mat-raised-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button #button mat-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n </ng-container>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"renderAsMenuItem\">\n <button #button mat-menu-item [disabled]=\"!enabled\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n</ng-container>\n", styles: [":host{display:inline-flex;flex-direction:row;justify-content:stretch}:host.in-popup{display:contents}:host button{flex:1}:host.centered button{text-align:center}:host.start button{text-align:start}:host.end button{text-align:end}:host.dense button.mat-mdc-icon-button{--mdc-icon-button-state-layer-size: 32px;--aup-icon-size: 20px;width:32px;height:32px;padding:4px;line-height:0}:host.dense button:not(.mat-mdc-icon-button){height:32px}:host.compact button.mat-mdc-icon-button{--mdc-icon-button-state-layer-size: 28px;--aup-icon-size: 18px;width:28px;height:28px;padding:0;line-height:0}:host.compact button:not(.mat-mdc-icon-button){height:28px;padding:0 8px;min-width:0;font-size:
|
|
1518
|
+
args: [{ selector: 'aup-button-renderer', template: "<ng-container *ngIf=\"!renderAsMenuItem\">\n <ng-container *ngIf=\"iconOnly$.value\">\n <button #button mat-icon-button [color]=\"color$.value\" [disabled]=\"!enabled\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngIf=\"!iconOnly$.value\">\n <ng-container [ngSwitch]=\"buttonStyle$.value\">\n <ng-container *ngSwitchCase=\"CommandFaceUtils.Style.STROKED\">\n <button #button mat-stroked-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"CommandFaceUtils.Style.RAISED\">\n <button #button mat-raised-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button #button mat-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n </ng-container>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"renderAsMenuItem\">\n <button #button mat-menu-item [disabled]=\"!enabled\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n</ng-container>\n", styles: [":host{display:inline-flex;flex-direction:row;justify-content:stretch}:host.in-popup{display:contents}:host button{flex:1}:host.centered button{text-align:center}:host.start button{text-align:start}:host.end button{text-align:end}:host.fill{align-self:stretch}:host.fill button{width:100%;min-width:0;border-radius:0}:host.fill button.mat-mdc-icon-button{height:100%;padding:0}:host.fill ::ng-deep .mat-mdc-button-persistent-ripple,:host.fill ::ng-deep .mat-mdc-button-ripple,:host.fill ::ng-deep .mat-mdc-focus-indicator{border-radius:0}:host.fill.start button{justify-content:flex-start}:host.fill.end button{justify-content:flex-end}:host.ellipsis{min-width:0;max-width:100%}:host.ellipsis button,:host.ellipsis ::ng-deep .mdc-button__label,:host.ellipsis ::ng-deep aup-command-face,:host.ellipsis ::ng-deep .face-container{min-width:0;max-width:100%}:host.ellipsis ::ng-deep .face-container>span{overflow:hidden;text-overflow:ellipsis}:host button.cdk-program-focused:not(:hover) ::ng-deep .mat-mdc-button-persistent-ripple:before{opacity:0}:host.dense button.mat-mdc-icon-button{--mdc-icon-button-state-layer-size: 32px;--aup-icon-size: 20px;width:32px;height:32px;padding:4px;line-height:0}:host.dense button:not(.mat-mdc-icon-button){height:32px}:host.compact button.mat-mdc-icon-button{--mdc-icon-button-state-layer-size: 28px;--aup-icon-size: 18px;width:28px;height:28px;padding:0;line-height:0}:host.compact button:not(.mat-mdc-icon-button){height:28px;padding:0 8px;min-width:0;font-size:min(1em,14px);letter-spacing:.0892857143em}\n"] }]
|
|
1510
1519
|
}], ctorParameters: function () { return []; }, propDecorators: { faces$: [{
|
|
1511
1520
|
type: Input
|
|
1512
1521
|
}], faces: [{
|
|
@@ -1528,6 +1537,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
1528
1537
|
type: Input
|
|
1529
1538
|
}], density: [{
|
|
1530
1539
|
type: Input
|
|
1540
|
+
}], fill: [{
|
|
1541
|
+
type: Input
|
|
1542
|
+
}, {
|
|
1543
|
+
type: HostBinding,
|
|
1544
|
+
args: ['class.fill']
|
|
1545
|
+
}], labelOverflow: [{
|
|
1546
|
+
type: Input
|
|
1547
|
+
}], ellipsis: [{
|
|
1548
|
+
type: HostBinding,
|
|
1549
|
+
args: ['class.ellipsis']
|
|
1531
1550
|
}], dense: [{
|
|
1532
1551
|
type: HostBinding,
|
|
1533
1552
|
args: ['class.dense']
|
|
@@ -1565,6 +1584,18 @@ class CommandComponent extends PopupAwareComponent {
|
|
|
1565
1584
|
alignFace = HorizontalAlignment.CENTER;
|
|
1566
1585
|
/** How much room the button takes (see {@link Density}); unset, it follows its area's. */
|
|
1567
1586
|
density;
|
|
1587
|
+
/**
|
|
1588
|
+
* Whether the button fills this command's box, which the page then sizes, with a square hover and focus layer. For a
|
|
1589
|
+
* button that is a segment of a larger control, such as the × at the end of a filter. An icon button fills the whole
|
|
1590
|
+
* box; a text button fills its width and keeps its own height. With `alignFace` start or end, the face sits at that
|
|
1591
|
+
* end of the box.
|
|
1592
|
+
*/
|
|
1593
|
+
fill = false;
|
|
1594
|
+
/** What the label does in a box narrower than it: 'ellipsis' lets the button shrink and cuts the label short with "…". */
|
|
1595
|
+
labelOverflow = 'visible';
|
|
1596
|
+
get ellipsis() {
|
|
1597
|
+
return this.labelOverflow === 'ellipsis';
|
|
1598
|
+
}
|
|
1568
1599
|
button;
|
|
1569
1600
|
faces$;
|
|
1570
1601
|
buttonStyle$;
|
|
@@ -1615,7 +1646,7 @@ class CommandComponent extends PopupAwareComponent {
|
|
|
1615
1646
|
this.button.focus();
|
|
1616
1647
|
}
|
|
1617
1648
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CommandComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1618
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CommandComponent, selector: "aup-command", inputs: { command: "command", face$: "face$", face: "face", busyFace$: "busyFace$", busyFace: "busyFace", alignFace: "alignFace", density: "density" }, host: { properties: { "class": "this.alignFace", "style.display": "this.cssDisplayProperty" } }, viewQueries: [{ propertyName: "button", first: true, predicate: ButtonRendererComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<aup-button-renderer [density]=\"density\" [faces$]=\"faces$\" [enabled$]=\"command.enabled$\" [alignFace]=\"alignFace\" [pectinCommand]=\"command\"></aup-button-renderer>\n", styles: [":host{display:inline-flex;flex-direction:column;align-items:stretch}:host.in-popup{display:contents}\n"], dependencies: [{ kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "component", type: ButtonRendererComponent, selector: "aup-button-renderer", inputs: ["faces$", "faces", "enabled$", "enabled", "busy$", "busy", "alignFace", "forceRenderAsButton", "density"] }] });
|
|
1649
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CommandComponent, selector: "aup-command", inputs: { command: "command", face$: "face$", face: "face", busyFace$: "busyFace$", busyFace: "busyFace", alignFace: "alignFace", density: "density", fill: "fill", labelOverflow: "labelOverflow" }, host: { properties: { "class": "this.alignFace", "class.fill": "this.fill", "class.ellipsis": "this.ellipsis", "style.display": "this.cssDisplayProperty" } }, viewQueries: [{ propertyName: "button", first: true, predicate: ButtonRendererComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<aup-button-renderer [density]=\"density\" [fill]=\"fill\" [labelOverflow]=\"labelOverflow\" [faces$]=\"faces$\" [enabled$]=\"command.enabled$\" [alignFace]=\"alignFace\" [pectinCommand]=\"command\"></aup-button-renderer>\n", styles: [":host{display:inline-flex;flex-direction:column;align-items:stretch}:host.in-popup{display:contents}:host.fill>aup-button-renderer{flex:1;min-height:0}:host.ellipsis{min-width:0;max-width:100%}\n"], dependencies: [{ kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "component", type: ButtonRendererComponent, selector: "aup-button-renderer", inputs: ["faces$", "faces", "enabled$", "enabled", "busy$", "busy", "alignFace", "forceRenderAsButton", "density", "fill", "labelOverflow"] }] });
|
|
1619
1650
|
}
|
|
1620
1651
|
__decorate([
|
|
1621
1652
|
Proxify(),
|
|
@@ -1639,7 +1670,7 @@ __decorate([
|
|
|
1639
1670
|
], CommandComponent.prototype, "busyFace", null);
|
|
1640
1671
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CommandComponent, decorators: [{
|
|
1641
1672
|
type: Component,
|
|
1642
|
-
args: [{ selector: 'aup-command', template: "<aup-button-renderer [density]=\"density\" [faces$]=\"faces$\" [enabled$]=\"command.enabled$\" [alignFace]=\"alignFace\" [pectinCommand]=\"command\"></aup-button-renderer>\n", styles: [":host{display:inline-flex;flex-direction:column;align-items:stretch}:host.in-popup{display:contents}\n"] }]
|
|
1673
|
+
args: [{ selector: 'aup-command', template: "<aup-button-renderer [density]=\"density\" [fill]=\"fill\" [labelOverflow]=\"labelOverflow\" [faces$]=\"faces$\" [enabled$]=\"command.enabled$\" [alignFace]=\"alignFace\" [pectinCommand]=\"command\"></aup-button-renderer>\n", styles: [":host{display:inline-flex;flex-direction:column;align-items:stretch}:host.in-popup{display:contents}:host.fill>aup-button-renderer{flex:1;min-height:0}:host.ellipsis{min-width:0;max-width:100%}\n"] }]
|
|
1643
1674
|
}], ctorParameters: function () { return []; }, propDecorators: { command: [{
|
|
1644
1675
|
type: Input
|
|
1645
1676
|
}], face$: [{
|
|
@@ -1657,6 +1688,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
1657
1688
|
args: ["class"]
|
|
1658
1689
|
}], density: [{
|
|
1659
1690
|
type: Input
|
|
1691
|
+
}], fill: [{
|
|
1692
|
+
type: Input
|
|
1693
|
+
}, {
|
|
1694
|
+
type: HostBinding,
|
|
1695
|
+
args: ['class.fill']
|
|
1696
|
+
}], labelOverflow: [{
|
|
1697
|
+
type: Input
|
|
1698
|
+
}], ellipsis: [{
|
|
1699
|
+
type: HostBinding,
|
|
1700
|
+
args: ['class.ellipsis']
|
|
1660
1701
|
}], button: [{
|
|
1661
1702
|
type: ViewChild,
|
|
1662
1703
|
args: [ButtonRendererComponent]
|
|
@@ -2117,7 +2158,7 @@ class MoreMenuComponent extends AbstractPopupMenuComponent {
|
|
|
2117
2158
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: MoreMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2118
2159
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: MoreMenuComponent, selector: "aup-more-menu", inputs: { tooltip: "tooltip" }, providers: [
|
|
2119
2160
|
{ provide: POPUP_CONTAINER, useExisting: MoreMenuComponent }
|
|
2120
|
-
], usesInheritance: true, ngImport: i0, template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <!-- Renderer first so `#subMenu` is bound before the trigger's *ngIf reads it. The renderer's\n host (aup-popup-menu-renderer) is a MatMenu template shell \u2014 invisible in flow \u2014 so order\n doesn't affect layout. -->\n <aup-popup-menu-renderer #subMenu [parent]=\"this\" (commandFired)=\"onCommandFired()\"></aup-popup-menu-renderer>\n <!-- Hide the trigger entirely when every item would be filtered out (all commands visibleWhile-\n gated to false, or the menu is composed solely of separators). Otherwise clicking the 3-dot\n opens an empty popup card \u2014 worse UX than \"no trigger at all\". -->\n <aup-button-renderer *ngIf=\"subMenu.renderableChildren.length\"\n [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent\"\n (click)=\"$event.stopPropagation()\"\n [forceRenderAsButton]=\"true\"\n ></aup-button-renderer>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: PopupMenuRendererComponent, selector: "aup-popup-menu-renderer", inputs: ["parent"], outputs: ["commandFired"] }, { kind: "component", type: ButtonRendererComponent, selector: "aup-button-renderer", inputs: ["faces$", "faces", "enabled$", "enabled", "busy$", "busy", "alignFace", "forceRenderAsButton", "density"] }] });
|
|
2161
|
+
], usesInheritance: true, ngImport: i0, template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <!-- Renderer first so `#subMenu` is bound before the trigger's *ngIf reads it. The renderer's\n host (aup-popup-menu-renderer) is a MatMenu template shell \u2014 invisible in flow \u2014 so order\n doesn't affect layout. -->\n <aup-popup-menu-renderer #subMenu [parent]=\"this\" (commandFired)=\"onCommandFired()\"></aup-popup-menu-renderer>\n <!-- Hide the trigger entirely when every item would be filtered out (all commands visibleWhile-\n gated to false, or the menu is composed solely of separators). Otherwise clicking the 3-dot\n opens an empty popup card \u2014 worse UX than \"no trigger at all\". -->\n <aup-button-renderer *ngIf=\"subMenu.renderableChildren.length\"\n [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent\"\n (click)=\"$event.stopPropagation()\"\n [forceRenderAsButton]=\"true\"\n ></aup-button-renderer>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: PopupMenuRendererComponent, selector: "aup-popup-menu-renderer", inputs: ["parent"], outputs: ["commandFired"] }, { kind: "component", type: ButtonRendererComponent, selector: "aup-button-renderer", inputs: ["faces$", "faces", "enabled$", "enabled", "busy$", "busy", "alignFace", "forceRenderAsButton", "density", "fill", "labelOverflow"] }] });
|
|
2121
2162
|
}
|
|
2122
2163
|
__decorate([
|
|
2123
2164
|
StoreInValueModel(),
|
|
@@ -2150,7 +2191,7 @@ class PopupMenuComponent extends AbstractPopupMenuComponent {
|
|
|
2150
2191
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2151
2192
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PopupMenuComponent, selector: "aup-popup-menu", inputs: { face$: "face$", face: "face" }, providers: [
|
|
2152
2193
|
{ provide: POPUP_CONTAINER, useExisting: PopupMenuComponent }
|
|
2153
|
-
], usesInheritance: true, ngImport: i0, template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <!-- Renderer first so `#subMenu` is bound before the trigger's *ngIf reads it. The renderer's\n host (aup-popup-menu-renderer) is a MatMenu template shell \u2014 invisible in flow \u2014 so order\n doesn't affect layout. -->\n <aup-popup-menu-renderer #subMenu [parent]=\"this\" (commandFired)=\"onCommandFired()\"></aup-popup-menu-renderer>\n <!-- Hide the trigger entirely when every item would be filtered out (all commands visibleWhile-\n gated to false, or the menu is composed solely of separators). Otherwise clicking the 3-dot\n opens an empty popup card \u2014 worse UX than \"no trigger at all\". -->\n <aup-button-renderer *ngIf=\"subMenu.renderableChildren.length\"\n [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent\"\n (click)=\"$event.stopPropagation()\"\n [forceRenderAsButton]=\"true\"\n ></aup-button-renderer>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: PopupMenuRendererComponent, selector: "aup-popup-menu-renderer", inputs: ["parent"], outputs: ["commandFired"] }, { kind: "component", type: ButtonRendererComponent, selector: "aup-button-renderer", inputs: ["faces$", "faces", "enabled$", "enabled", "busy$", "busy", "alignFace", "forceRenderAsButton", "density"] }] });
|
|
2194
|
+
], usesInheritance: true, ngImport: i0, template: "<!-- we hide our commands as they need to be rendered by the menu renderer so the menu -> submenu heirarch is maintained -->\n<!-- probably a better way to do this is with a aup-menu-item directive that makes a template and skips the rendering all together -->\n<div class=\"content\" style=\"display: none\">\n <ng-content></ng-content>\n</div>\n\n<ng-container *ngIf=\"isRoot()\">\n <!-- Renderer first so `#subMenu` is bound before the trigger's *ngIf reads it. The renderer's\n host (aup-popup-menu-renderer) is a MatMenu template shell \u2014 invisible in flow \u2014 so order\n doesn't affect layout. -->\n <aup-popup-menu-renderer #subMenu [parent]=\"this\" (commandFired)=\"onCommandFired()\"></aup-popup-menu-renderer>\n <!-- Hide the trigger entirely when every item would be filtered out (all commands visibleWhile-\n gated to false, or the menu is composed solely of separators). Otherwise clicking the 3-dot\n opens an empty popup card \u2014 worse UX than \"no trigger at all\". -->\n <aup-button-renderer *ngIf=\"subMenu.renderableChildren.length\"\n [faces$]=\"faces$\" [matMenuTriggerFor]=\"subMenu.menuComponent\"\n (click)=\"$event.stopPropagation()\"\n [forceRenderAsButton]=\"true\"\n ></aup-button-renderer>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: PopupMenuRendererComponent, selector: "aup-popup-menu-renderer", inputs: ["parent"], outputs: ["commandFired"] }, { kind: "component", type: ButtonRendererComponent, selector: "aup-button-renderer", inputs: ["faces$", "faces", "enabled$", "enabled", "busy$", "busy", "alignFace", "forceRenderAsButton", "density", "fill", "labelOverflow"] }] });
|
|
2154
2195
|
}
|
|
2155
2196
|
__decorate([
|
|
2156
2197
|
DelegateToValueModel('faceModelDelegate'),
|
|
@@ -3177,7 +3218,7 @@ class PasswordInputComponent extends AbstractValueInputComponent {
|
|
|
3177
3218
|
return this.showPassword$.value ? "text" : "password";
|
|
3178
3219
|
}
|
|
3179
3220
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PasswordInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3180
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PasswordInputComponent, selector: "aup-password-input", inputs: { autocomplete: "autocomplete", enableShowPassword$: "enableShowPassword$", enableShowPassword: "enableShowPassword" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input [type]=\"fieldType\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n <span matSuffix class=\"aup-validation-icon\" *ngIf=\"popupMessage\">\n <aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon>\n </span>\n <span matSuffix *ngIf=\"enableShowPassword$.value\">\n <aup-command [command]=\"toggleShowPasswordCommand\" data-cy=\"showPassword\"></aup-command>\n </span>\n</mat-form-field>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: AupTooltipDirective, selector: "[aupTooltip]", inputs: ["aupTooltip", "aupTooltipPosition", "aupTooltipPositionAtOrigin", "aupTooltipDisabled", "aupTooltipShowDelay", "aupTooltipHideDelay", "aupTooltipTouchGestures", "aupTooltipClass"], exportAs: ["aupTooltip"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density"] }] });
|
|
3221
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PasswordInputComponent, selector: "aup-password-input", inputs: { autocomplete: "autocomplete", enableShowPassword$: "enableShowPassword$", enableShowPassword: "enableShowPassword" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input [type]=\"fieldType\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n <span matSuffix class=\"aup-validation-icon\" *ngIf=\"popupMessage\">\n <aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon>\n </span>\n <span matSuffix *ngIf=\"enableShowPassword$.value\">\n <aup-command [command]=\"toggleShowPasswordCommand\" data-cy=\"showPassword\"></aup-command>\n </span>\n</mat-form-field>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: AupTooltipDirective, selector: "[aupTooltip]", inputs: ["aupTooltip", "aupTooltipPosition", "aupTooltipPositionAtOrigin", "aupTooltipDisabled", "aupTooltipShowDelay", "aupTooltipHideDelay", "aupTooltipTouchGestures", "aupTooltipClass"], exportAs: ["aupTooltip"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }] });
|
|
3181
3222
|
}
|
|
3182
3223
|
__decorate([
|
|
3183
3224
|
Proxify(),
|
|
@@ -3679,7 +3720,7 @@ class StringInputComponent extends AbstractValueInputComponent {
|
|
|
3679
3720
|
this.elementRef.nativeElement.querySelector('input').select();
|
|
3680
3721
|
}
|
|
3681
3722
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: StringInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3682
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: StringInputComponent, selector: "aup-string-input", inputs: { autocomplete: "autocomplete", enableClear$: "enableClear$", enableClear: "enableClear", iconPrefix: "iconPrefix", suffixCommand: "suffixCommand", inputMode: "inputMode" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [attr.inputmode]=\"inputMode\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n <span matSuffix class=\"aup-validation-icon\" *ngIf=\"popupMessage\">\n <aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon>\n </span>\n <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\n <span matSuffix>\n <aup-command *ngIf=\"enableClear\" [command]=\"clearCommand\" data-cy=\"clearCommand\"></aup-command>\n <aup-command *ngIf=\"hasSuffixCommand\" [command]=\"suffixCommand\" data-cy=\"suffixCommand\"></aup-command>\n </span>\n</mat-form-field>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: AupTooltipDirective, selector: "[aupTooltip]", inputs: ["aupTooltip", "aupTooltipPosition", "aupTooltipPositionAtOrigin", "aupTooltipDisabled", "aupTooltipShowDelay", "aupTooltipHideDelay", "aupTooltipTouchGestures", "aupTooltipClass"], exportAs: ["aupTooltip"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density"] }] });
|
|
3723
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: StringInputComponent, selector: "aup-string-input", inputs: { autocomplete: "autocomplete", enableClear$: "enableClear$", enableClear: "enableClear", iconPrefix: "iconPrefix", suffixCommand: "suffixCommand", inputMode: "inputMode" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [attr.inputmode]=\"inputMode\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n <span matSuffix class=\"aup-validation-icon\" *ngIf=\"popupMessage\">\n <aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon>\n </span>\n <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>\n <span matSuffix>\n <aup-command *ngIf=\"enableClear\" [command]=\"clearCommand\" data-cy=\"clearCommand\"></aup-command>\n <aup-command *ngIf=\"hasSuffixCommand\" [command]=\"suffixCommand\" data-cy=\"suffixCommand\"></aup-command>\n </span>\n</mat-form-field>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: AupTooltipDirective, selector: "[aupTooltip]", inputs: ["aupTooltip", "aupTooltipPosition", "aupTooltipPositionAtOrigin", "aupTooltipDisabled", "aupTooltipShowDelay", "aupTooltipHideDelay", "aupTooltipTouchGestures", "aupTooltipClass"], exportAs: ["aupTooltip"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }] });
|
|
3683
3724
|
}
|
|
3684
3725
|
__decorate([
|
|
3685
3726
|
Proxify(),
|
|
@@ -4414,7 +4455,7 @@ class SubFormListComponent extends DisposableComponent {
|
|
|
4414
4455
|
}
|
|
4415
4456
|
}
|
|
4416
4457
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SubFormListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4417
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SubFormListComponent, selector: "aup-sub-form-list", inputs: { list: "list", reorder: "reorder", removable$: "removable$", removable: "removable", removeFace: "removeFace", moveUpFace: "moveUpFace", moveDownFace: "moveDownFace", dragHandleIcon: "dragHandleIcon", addCommand: "addCommand", emptyText: "emptyText", dense: "dense", fill: "fill", rowLayout: "rowLayout", columns: "columns", appearance: "appearance" }, host: { properties: { "class.dense": "this.dense", "class.fill": "this.fill", "attr.data-appearance": "this.appearance", "class.buttons-on-demand": "this.buttonsOnDemand", "attr.data-row-layout": "this.rowLayoutAttribute" } }, queries: [{ propertyName: "rowTemplate", first: true, predicate: SubFormRowDirective, descendants: true }, { propertyName: "actionsTemplate", first: true, predicate: SubFormRowActionsDirective, descendants: true }, { propertyName: "emptyTemplate", first: true, predicate: SubFormListEmptyDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: SubFormListHeaderDirective, descendants: true }, { propertyName: "footerTemplates", predicate: SubFormListFooterDirective }], viewQueries: [{ propertyName: "rowContents", predicate: ["rowContent"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<!-- The rows container carries a layout class only for `subgrid`, the one layout that is not laid\n out entirely within a row: this element is the grid whose tracks the rows subgrid. It is safe\n to anchor rules here \u2014 unlike .row, this element is never cloned. -->\n<div class=\"rows\"\n role=\"list\"\n [class.layout-subgrid]=\"subgridLayout\"\n cdkDropList\n [cdkDropListDisabled]=\"!dragEnabled\"\n (cdkDropListDropped)=\"onDropped($event)\"\n data-cy=\"sub-form-rows\">\n\n <!-- Inside .rows and ahead of them, because only a child of the grid can adopt its tracks \u2014 the\n same reason the footer rows sit inside it. A caller aligning column titles from outside would\n have to restate `--aup-sub-form-list-columns`, which drifts the moment a row's cells change.\n\n Hidden from assistive tech and given no listitem role: it names the columns rather than\n standing for an item, and a screen reader reaching the rows through the list should not have\n to step over it. Offered under `subgrid` alone \u2014 it is the only layout with columns to name. -->\n <div class=\"header-row layout-subgrid\"\n *ngIf=\"headerVisible\"\n aria-hidden=\"true\"\n data-cy=\"sub-form-header-row\">\n <!-- Mirrors .content so the caller's top-level elements get the same tracks a row's cells do. -->\n <div class=\"content\">\n <ng-container *ngIf=\"headerTemplate; else declaredHeader\"\n [ngTemplateOutlet]=\"headerTemplate.templateRef\"></ng-container>\n <!-- Plain spans carrying no library styling: a declared header has to render identically to a\n template one, or moving from one to the other silently restyles a consumer's band. The\n ngIf/ngFor anchors are comment nodes, so these stay the direct element children of\n .content and auto-place one per track exactly as a template's cells do.\n\n A column with no title still renders its cell \u2014 its track exists either way, and skipping\n it would shift every column after it one track left. -->\n <ng-template #declaredHeader>\n <span *ngFor=\"let column of headerColumns\"\n [attr.data-column-id]=\"column.columnId\"\n data-cy=\"sub-form-header-cell\">{{ column.getHeaderText() }}</span>\n </ng-template>\n </div>\n </div>\n\n <!-- The layout classes go on .row, not the host: CDK's drag preview is a deep clone of .row\n appended to <body>, and a rule anchored on the host cannot reach it. Written as discrete\n [class.x] bindings rather than one [ngClass] object literal, which would allocate a fresh\n object on every change-detection pass. -->\n <div class=\"row\"\n role=\"listitem\"\n *ngFor=\"let context of rows; trackBy: trackByRow\"\n [class.layout-inline]=\"inlineLayout\"\n [class.layout-rail]=\"railLayout\"\n [class.layout-custom]=\"customLayout\"\n [class.layout-subgrid]=\"subgridLayout\"\n [class.fill]=\"fill\"\n [class.buttons-on-demand]=\"buttonsOnDemand\"\n [class.has-actions]=\"hasActions\"\n cdkDrag\n [cdkDragDisabled]=\"!dragEnabled\"\n data-cy=\"sub-form-row\">\n\n <!-- Deliberately not focusable and hidden from assistive tech: CDK drag is pointer-only, so a\n focusable handle would take a tab stop and then do nothing. The move buttons are the\n keyboard path, which is why they survive even in reorder=\"drag\" \u2014 and why rowLayout=\"custom\",\n which renders none of them, makes that path the caller's to provide.\n\n It stays library-rendered in every layout because it has to: CdkDragHandle finds its drag\n through the node injector and CdkDrag collects handles with a content query, both scoped to\n the template cdkDrag is written in. A cdkDragHandle in a caller's row template resolves no\n parent and, because that injection is optional, silently does nothing. -->\n <span class=\"drag-handle\" *ngIf=\"dragEnabled\" cdkDragHandle aria-hidden=\"true\"\n data-cy=\"sub-form-drag-handle\">\n <aup-icon [icon]=\"dragHandleIcon\"></aup-icon>\n </span>\n\n <!-- Given `display: contents` under rowLayout=\"custom\", so the projected template's own\n top-level elements become the row's grid items. Never *ngIf'd away for that: recreating it\n would tear down and rebuild the caller's row bindings, which is exactly what the row\n context memoisation exists to prevent. -->\n <div class=\"content\" #rowContent>\n <ng-container *ngIf=\"rowTemplate\"\n [ngTemplateOutlet]=\"rowTemplate.templateRef\"\n [ngTemplateOutletContext]=\"context\"></ng-container>\n </div>\n\n <!-- The default cluster is three flat grid items, one per named cell, so a layout can place\n them independently \u2014 the rail stacks the moves away from remove. -->\n <ng-container *ngIf=\"defaultActionsVisible\">\n <aup-command *ngIf=\"moveButtonsVisible\" class=\"move-command move-up\"\n [command]=\"context.row.moveUpCommand\"\n [face]=\"moveUpFace\" data-cy=\"sub-form-move-up\"></aup-command>\n <aup-command *ngIf=\"moveButtonsVisible\" class=\"move-command move-down\"\n [command]=\"context.row.moveDownCommand\"\n [face]=\"moveDownFace\" data-cy=\"sub-form-move-down\"></aup-command>\n <aup-command *ngIf=\"removable\" class=\"remove\" [command]=\"context.row.removeItemCommand\"\n [face]=\"removeFace\" data-cy=\"sub-form-remove\"></aup-command>\n </ng-container>\n\n <!-- The replacing cluster keeps its wrapper: it is one grid item in the `actions` cell, and an\n ng-container outlet generates no element to place. -->\n <div class=\"actions\" *ngIf=\"customActionsVisible\">\n <ng-container [ngTemplateOutlet]=\"actionsTemplate.templateRef\"\n [ngTemplateOutletContext]=\"context\"></ng-container>\n </div>\n </div>\n\n <!-- Inside .rows deliberately: that element is the grid under `subgrid`, so only a child of it can\n adopt the tracks and line the footer's cells up with the rows'. Placed after the rows and given\n no listitem role \u2014 it is a trailing statement about the list, not another item in it. -->\n <div class=\"footer-row\"\n *ngFor=\"let footer of footerTemplates\"\n [class.layout-subgrid]=\"subgridLayout\"\n data-cy=\"sub-form-footer-row\">\n <!-- Mirrors .content so the caller's top-level elements get the same tracks a row's cells do. -->\n <div class=\"content\">\n <ng-container [ngTemplateOutlet]=\"footer.templateRef\"></ng-container>\n </div>\n </div>\n</div>\n\n<ng-container *ngIf=\"empty\">\n <ng-container *ngIf=\"emptyTemplate; else defaultEmpty\"\n [ngTemplateOutlet]=\"emptyTemplate.templateRef\"></ng-container>\n <ng-template #defaultEmpty>\n <aup-empty-state *ngIf=\"emptyText\" data-cy=\"sub-form-list-empty\">{{emptyText}}</aup-empty-state>\n </ng-template>\n</ng-container>\n\n<ul class=\"list-errors\" *ngIf=\"listErrors.length\" data-cy=\"sub-form-list-errors\">\n <li *ngFor=\"let error of listErrors\">{{error}}</li>\n</ul>\n\n<div class=\"footer\" *ngIf=\"hasAddCommand\">\n <aup-command [command]=\"addCommand\" data-cy=\"sub-form-list-add\"></aup-command>\n</div>\n", styles: [":host{display:block}.rows{display:flex;flex-direction:column;gap:var(--aup-sub-form-row-gap, 8px)}.row{display:grid;grid-template-areas:var(--aup-sub-form-row-areas, var(--resolved-sub-form-row-areas, \"handle content up down actions\"));grid-template-columns:var(--aup-sub-form-row-columns, var(--resolved-sub-form-row-columns, auto auto auto auto auto));grid-template-rows:var(--aup-sub-form-row-rows, var(--resolved-sub-form-row-rows, auto));justify-content:start;align-items:center;gap:0;background:var(--aup-sub-form-row-background, transparent)}.drag-handle{grid-area:handle}.content{grid-area:content}.move-up{grid-area:up}.move-down{grid-area:down}.remove,.actions{grid-area:actions}.drag-handle,.row.has-actions .content{margin-inline-end:var(--aup-sub-form-row-gap, 8px)}.drag-handle{display:flex;align-items:center;cursor:grab;color:#00000061}.drag-handle:active{cursor:grabbing}.content{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--aup-sub-form-row-gap, 8px);min-width:0}.move-up,.move-down,.remove{white-space:nowrap}.actions{display:flex;align-items:center;gap:0;white-space:nowrap}.row.layout-rail{--resolved-sub-form-row-areas: \"up content actions\" \"handle content actions\" \"down content actions\";--resolved-sub-form-row-columns: auto auto auto;--resolved-sub-form-row-rows: auto auto auto}.row.layout-rail .move-up{align-self:start}.row.layout-rail .move-down{align-self:end}.row.layout-rail .drag-handle,.row.layout-rail .move-up,.row.layout-rail .move-down{justify-self:center}.row.layout-rail .move-up,.row.layout-rail .move-down{margin-inline-end:var(--aup-sub-form-row-gap, 8px)}.row.layout-custom{--resolved-sub-form-row-areas: none;--resolved-sub-form-row-columns: none;--resolved-sub-form-row-rows: none}.row.layout-custom .content{display:contents}.rows.layout-subgrid{display:grid;grid-template-columns:[handle-start] auto [handle-end content-start] var(--aup-sub-form-list-columns, var(--resolved-sub-form-list-columns, 1fr)) [content-end up-start] auto [up-end down-start] auto [down-end actions-start] auto [actions-end];row-gap:var(--aup-sub-form-row-gap, 8px);column-gap:var(--aup-sub-form-list-column-gap, var(--aup-sub-form-row-gap, 8px));justify-content:start}.row.layout-subgrid{--resolved-sub-form-row-areas: none;--resolved-sub-form-row-columns: subgrid;--resolved-sub-form-row-rows: none;grid-column:1/-1}.row.layout-subgrid .drag-handle{grid-column:handle-start/handle-end;margin-inline-end:0}.row.layout-subgrid .content{grid-column:content-start/content-end;display:grid;grid-template-columns:subgrid;align-items:center;column-gap:var(--aup-sub-form-list-column-gap, var(--aup-sub-form-row-gap, 8px))}.row.layout-subgrid.has-actions .content{margin-inline-end:0}.row.layout-subgrid .move-up{grid-column:up-start/up-end}.row.layout-subgrid .move-down{grid-column:down-start/down-end}.row.layout-subgrid .remove,.row.layout-subgrid .actions{grid-column:actions-start/actions-end}.header-row.layout-subgrid,.footer-row.layout-subgrid{display:grid;grid-template-columns:subgrid;grid-column:1/-1;gap:0}.header-row.layout-subgrid .content,.footer-row.layout-subgrid .content{grid-column:content-start/content-end;display:grid;grid-template-columns:subgrid;align-items:center;column-gap:var(--aup-sub-form-list-column-gap, var(--aup-sub-form-row-gap, 8px))}@supports not (grid-template-columns: subgrid){.rows.layout-subgrid{display:flex;flex-direction:column;gap:var(--aup-sub-form-row-gap, 8px)}.row.layout-subgrid{--resolved-sub-form-row-areas: \"handle content up down actions\";--resolved-sub-form-row-columns: auto auto auto auto auto}.row.layout-subgrid .drag-handle{margin-inline-end:var(--aup-sub-form-row-gap, 8px)}.row.layout-subgrid .content{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--aup-sub-form-row-gap, 8px)}.row.layout-subgrid.has-actions .content{margin-inline-end:var(--aup-sub-form-row-gap, 8px)}.header-row.layout-subgrid .content,.footer-row.layout-subgrid .content{display:flex;flex-wrap:wrap;align-items:center;gap:var(--aup-sub-form-row-gap, 8px)}}.row.layout-inline.fill{--resolved-sub-form-row-columns: auto 1fr auto auto auto}.row.layout-rail.fill{--resolved-sub-form-row-columns: auto 1fr auto}.row.buttons-on-demand .move-command{opacity:0;transition:opacity .15s ease-in-out}.row.buttons-on-demand:hover .move-command,.row.buttons-on-demand:focus-within .move-command{opacity:1}.list-errors{margin:var(--aup-sub-form-row-gap, 8px) 0 0;padding-left:1.2em;color:var(--aup-error-color, #f44336);font-size:12px}.footer{display:flex;margin-top:var(--aup-sub-form-row-gap, 8px)}.row.cdk-drag-preview{box-sizing:border-box;border-radius:4px;background:var(--aup-sub-form-row-background, #fff);box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.row.cdk-drag-preview.layout-subgrid{grid-template-columns:none;grid-auto-flow:column;justify-content:start;column-gap:var(--aup-sub-form-row-gap, 8px)}.row.cdk-drag-preview.layout-subgrid .drag-handle,.row.cdk-drag-preview.layout-subgrid .content,.row.cdk-drag-preview.layout-subgrid .move-up,.row.cdk-drag-preview.layout-subgrid .move-down,.row.cdk-drag-preview.layout-subgrid .remove,.row.cdk-drag-preview.layout-subgrid .actions{grid-area:auto}.row.cdk-drag-preview.layout-subgrid .content{grid-template-columns:none;grid-auto-flow:column;column-gap:var(--aup-sub-form-row-gap, 8px)}.row.cdk-drag-placeholder{opacity:.4}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.rows.cdk-drop-list-dragging .row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}:host([data-appearance=table]) .rows{border:var(--aup-sub-form-list-border, 1px solid rgba(0, 0, 0, .12));border-radius:var(--aup-sub-form-list-radius, 6px);overflow:hidden}:host([data-appearance=table]) .rows,:host([data-appearance=table]) .rows.layout-subgrid{row-gap:0}:host([data-appearance=table]) .row{padding:var(--aup-sub-form-list-cell-padding, 8px)}:host([data-appearance=table]) .row+.row{border-block-start:var(--aup-sub-form-list-border, 1px solid rgba(0, 0, 0, .12))}:host([data-appearance=table]) .header-row{padding:var(--aup-sub-form-list-cell-padding, 8px);background:var(--aup-sub-form-list-header-background, rgba(0, 0, 0, .02));border-block-end:var(--aup-sub-form-list-border, 1px solid rgba(0, 0, 0, .12))}:host([data-appearance=table]) .header-row .content>*{font-size:var(--aup-sub-form-list-header-font-size, 11px);font-weight:var(--aup-sub-form-list-header-font-weight, 500);letter-spacing:var(--aup-sub-form-list-header-letter-spacing, .05em);text-transform:var(--aup-sub-form-list-header-text-transform, uppercase);color:var(--aup-sub-form-list-header-color, rgba(0, 0, 0, .6))}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$7.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i2$7.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i2$7.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density"] }, { kind: "component", type: EmptyStateComponent, selector: "aup-empty-state" }] });
|
|
4458
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SubFormListComponent, selector: "aup-sub-form-list", inputs: { list: "list", reorder: "reorder", removable$: "removable$", removable: "removable", removeFace: "removeFace", moveUpFace: "moveUpFace", moveDownFace: "moveDownFace", dragHandleIcon: "dragHandleIcon", addCommand: "addCommand", emptyText: "emptyText", dense: "dense", fill: "fill", rowLayout: "rowLayout", columns: "columns", appearance: "appearance" }, host: { properties: { "class.dense": "this.dense", "class.fill": "this.fill", "attr.data-appearance": "this.appearance", "class.buttons-on-demand": "this.buttonsOnDemand", "attr.data-row-layout": "this.rowLayoutAttribute" } }, queries: [{ propertyName: "rowTemplate", first: true, predicate: SubFormRowDirective, descendants: true }, { propertyName: "actionsTemplate", first: true, predicate: SubFormRowActionsDirective, descendants: true }, { propertyName: "emptyTemplate", first: true, predicate: SubFormListEmptyDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: SubFormListHeaderDirective, descendants: true }, { propertyName: "footerTemplates", predicate: SubFormListFooterDirective }], viewQueries: [{ propertyName: "rowContents", predicate: ["rowContent"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<!-- The rows container carries a layout class only for `subgrid`, the one layout that is not laid\n out entirely within a row: this element is the grid whose tracks the rows subgrid. It is safe\n to anchor rules here \u2014 unlike .row, this element is never cloned. -->\n<div class=\"rows\"\n role=\"list\"\n [class.layout-subgrid]=\"subgridLayout\"\n cdkDropList\n [cdkDropListDisabled]=\"!dragEnabled\"\n (cdkDropListDropped)=\"onDropped($event)\"\n data-cy=\"sub-form-rows\">\n\n <!-- Inside .rows and ahead of them, because only a child of the grid can adopt its tracks \u2014 the\n same reason the footer rows sit inside it. A caller aligning column titles from outside would\n have to restate `--aup-sub-form-list-columns`, which drifts the moment a row's cells change.\n\n Hidden from assistive tech and given no listitem role: it names the columns rather than\n standing for an item, and a screen reader reaching the rows through the list should not have\n to step over it. Offered under `subgrid` alone \u2014 it is the only layout with columns to name. -->\n <div class=\"header-row layout-subgrid\"\n *ngIf=\"headerVisible\"\n aria-hidden=\"true\"\n data-cy=\"sub-form-header-row\">\n <!-- Mirrors .content so the caller's top-level elements get the same tracks a row's cells do. -->\n <div class=\"content\">\n <ng-container *ngIf=\"headerTemplate; else declaredHeader\"\n [ngTemplateOutlet]=\"headerTemplate.templateRef\"></ng-container>\n <!-- Plain spans carrying no library styling: a declared header has to render identically to a\n template one, or moving from one to the other silently restyles a consumer's band. The\n ngIf/ngFor anchors are comment nodes, so these stay the direct element children of\n .content and auto-place one per track exactly as a template's cells do.\n\n A column with no title still renders its cell \u2014 its track exists either way, and skipping\n it would shift every column after it one track left. -->\n <ng-template #declaredHeader>\n <span *ngFor=\"let column of headerColumns\"\n [attr.data-column-id]=\"column.columnId\"\n data-cy=\"sub-form-header-cell\">{{ column.getHeaderText() }}</span>\n </ng-template>\n </div>\n </div>\n\n <!-- The layout classes go on .row, not the host: CDK's drag preview is a deep clone of .row\n appended to <body>, and a rule anchored on the host cannot reach it. Written as discrete\n [class.x] bindings rather than one [ngClass] object literal, which would allocate a fresh\n object on every change-detection pass. -->\n <div class=\"row\"\n role=\"listitem\"\n *ngFor=\"let context of rows; trackBy: trackByRow\"\n [class.layout-inline]=\"inlineLayout\"\n [class.layout-rail]=\"railLayout\"\n [class.layout-custom]=\"customLayout\"\n [class.layout-subgrid]=\"subgridLayout\"\n [class.fill]=\"fill\"\n [class.buttons-on-demand]=\"buttonsOnDemand\"\n [class.has-actions]=\"hasActions\"\n cdkDrag\n [cdkDragDisabled]=\"!dragEnabled\"\n data-cy=\"sub-form-row\">\n\n <!-- Deliberately not focusable and hidden from assistive tech: CDK drag is pointer-only, so a\n focusable handle would take a tab stop and then do nothing. The move buttons are the\n keyboard path, which is why they survive even in reorder=\"drag\" \u2014 and why rowLayout=\"custom\",\n which renders none of them, makes that path the caller's to provide.\n\n It stays library-rendered in every layout because it has to: CdkDragHandle finds its drag\n through the node injector and CdkDrag collects handles with a content query, both scoped to\n the template cdkDrag is written in. A cdkDragHandle in a caller's row template resolves no\n parent and, because that injection is optional, silently does nothing. -->\n <span class=\"drag-handle\" *ngIf=\"dragEnabled\" cdkDragHandle aria-hidden=\"true\"\n data-cy=\"sub-form-drag-handle\">\n <aup-icon [icon]=\"dragHandleIcon\"></aup-icon>\n </span>\n\n <!-- Given `display: contents` under rowLayout=\"custom\", so the projected template's own\n top-level elements become the row's grid items. Never *ngIf'd away for that: recreating it\n would tear down and rebuild the caller's row bindings, which is exactly what the row\n context memoisation exists to prevent. -->\n <div class=\"content\" #rowContent>\n <ng-container *ngIf=\"rowTemplate\"\n [ngTemplateOutlet]=\"rowTemplate.templateRef\"\n [ngTemplateOutletContext]=\"context\"></ng-container>\n </div>\n\n <!-- The default cluster is three flat grid items, one per named cell, so a layout can place\n them independently \u2014 the rail stacks the moves away from remove. -->\n <ng-container *ngIf=\"defaultActionsVisible\">\n <aup-command *ngIf=\"moveButtonsVisible\" class=\"move-command move-up\"\n [command]=\"context.row.moveUpCommand\"\n [face]=\"moveUpFace\" data-cy=\"sub-form-move-up\"></aup-command>\n <aup-command *ngIf=\"moveButtonsVisible\" class=\"move-command move-down\"\n [command]=\"context.row.moveDownCommand\"\n [face]=\"moveDownFace\" data-cy=\"sub-form-move-down\"></aup-command>\n <aup-command *ngIf=\"removable\" class=\"remove\" [command]=\"context.row.removeItemCommand\"\n [face]=\"removeFace\" data-cy=\"sub-form-remove\"></aup-command>\n </ng-container>\n\n <!-- The replacing cluster keeps its wrapper: it is one grid item in the `actions` cell, and an\n ng-container outlet generates no element to place. -->\n <div class=\"actions\" *ngIf=\"customActionsVisible\">\n <ng-container [ngTemplateOutlet]=\"actionsTemplate.templateRef\"\n [ngTemplateOutletContext]=\"context\"></ng-container>\n </div>\n </div>\n\n <!-- Inside .rows deliberately: that element is the grid under `subgrid`, so only a child of it can\n adopt the tracks and line the footer's cells up with the rows'. Placed after the rows and given\n no listitem role \u2014 it is a trailing statement about the list, not another item in it. -->\n <div class=\"footer-row\"\n *ngFor=\"let footer of footerTemplates\"\n [class.layout-subgrid]=\"subgridLayout\"\n data-cy=\"sub-form-footer-row\">\n <!-- Mirrors .content so the caller's top-level elements get the same tracks a row's cells do. -->\n <div class=\"content\">\n <ng-container [ngTemplateOutlet]=\"footer.templateRef\"></ng-container>\n </div>\n </div>\n</div>\n\n<ng-container *ngIf=\"empty\">\n <ng-container *ngIf=\"emptyTemplate; else defaultEmpty\"\n [ngTemplateOutlet]=\"emptyTemplate.templateRef\"></ng-container>\n <ng-template #defaultEmpty>\n <aup-empty-state *ngIf=\"emptyText\" data-cy=\"sub-form-list-empty\">{{emptyText}}</aup-empty-state>\n </ng-template>\n</ng-container>\n\n<ul class=\"list-errors\" *ngIf=\"listErrors.length\" data-cy=\"sub-form-list-errors\">\n <li *ngFor=\"let error of listErrors\">{{error}}</li>\n</ul>\n\n<div class=\"footer\" *ngIf=\"hasAddCommand\">\n <aup-command [command]=\"addCommand\" data-cy=\"sub-form-list-add\"></aup-command>\n</div>\n", styles: [":host{display:block}.rows{display:flex;flex-direction:column;gap:var(--aup-sub-form-row-gap, 8px)}.row{display:grid;grid-template-areas:var(--aup-sub-form-row-areas, var(--resolved-sub-form-row-areas, \"handle content up down actions\"));grid-template-columns:var(--aup-sub-form-row-columns, var(--resolved-sub-form-row-columns, auto auto auto auto auto));grid-template-rows:var(--aup-sub-form-row-rows, var(--resolved-sub-form-row-rows, auto));justify-content:start;align-items:center;gap:0;background:var(--aup-sub-form-row-background, transparent)}.drag-handle{grid-area:handle}.content{grid-area:content}.move-up{grid-area:up}.move-down{grid-area:down}.remove,.actions{grid-area:actions}.drag-handle,.row.has-actions .content{margin-inline-end:var(--aup-sub-form-row-gap, 8px)}.drag-handle{display:flex;align-items:center;cursor:grab;color:#00000061}.drag-handle:active{cursor:grabbing}.content{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--aup-sub-form-row-gap, 8px);min-width:0}.move-up,.move-down,.remove{white-space:nowrap}.actions{display:flex;align-items:center;gap:0;white-space:nowrap}.row.layout-rail{--resolved-sub-form-row-areas: \"up content actions\" \"handle content actions\" \"down content actions\";--resolved-sub-form-row-columns: auto auto auto;--resolved-sub-form-row-rows: auto auto auto}.row.layout-rail .move-up{align-self:start}.row.layout-rail .move-down{align-self:end}.row.layout-rail .drag-handle,.row.layout-rail .move-up,.row.layout-rail .move-down{justify-self:center}.row.layout-rail .move-up,.row.layout-rail .move-down{margin-inline-end:var(--aup-sub-form-row-gap, 8px)}.row.layout-custom{--resolved-sub-form-row-areas: none;--resolved-sub-form-row-columns: none;--resolved-sub-form-row-rows: none}.row.layout-custom .content{display:contents}.rows.layout-subgrid{display:grid;grid-template-columns:[handle-start] auto [handle-end content-start] var(--aup-sub-form-list-columns, var(--resolved-sub-form-list-columns, 1fr)) [content-end up-start] auto [up-end down-start] auto [down-end actions-start] auto [actions-end];row-gap:var(--aup-sub-form-row-gap, 8px);column-gap:var(--aup-sub-form-list-column-gap, var(--aup-sub-form-row-gap, 8px));justify-content:start}.row.layout-subgrid{--resolved-sub-form-row-areas: none;--resolved-sub-form-row-columns: subgrid;--resolved-sub-form-row-rows: none;grid-column:1/-1}.row.layout-subgrid .drag-handle{grid-column:handle-start/handle-end;margin-inline-end:0}.row.layout-subgrid .content{grid-column:content-start/content-end;display:grid;grid-template-columns:subgrid;align-items:center;column-gap:var(--aup-sub-form-list-column-gap, var(--aup-sub-form-row-gap, 8px))}.row.layout-subgrid.has-actions .content{margin-inline-end:0}.row.layout-subgrid .move-up{grid-column:up-start/up-end}.row.layout-subgrid .move-down{grid-column:down-start/down-end}.row.layout-subgrid .remove,.row.layout-subgrid .actions{grid-column:actions-start/actions-end}.header-row.layout-subgrid,.footer-row.layout-subgrid{display:grid;grid-template-columns:subgrid;grid-column:1/-1;gap:0}.header-row.layout-subgrid .content,.footer-row.layout-subgrid .content{grid-column:content-start/content-end;display:grid;grid-template-columns:subgrid;align-items:center;column-gap:var(--aup-sub-form-list-column-gap, var(--aup-sub-form-row-gap, 8px))}@supports not (grid-template-columns: subgrid){.rows.layout-subgrid{display:flex;flex-direction:column;gap:var(--aup-sub-form-row-gap, 8px)}.row.layout-subgrid{--resolved-sub-form-row-areas: \"handle content up down actions\";--resolved-sub-form-row-columns: auto auto auto auto auto}.row.layout-subgrid .drag-handle{margin-inline-end:var(--aup-sub-form-row-gap, 8px)}.row.layout-subgrid .content{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--aup-sub-form-row-gap, 8px)}.row.layout-subgrid.has-actions .content{margin-inline-end:var(--aup-sub-form-row-gap, 8px)}.header-row.layout-subgrid .content,.footer-row.layout-subgrid .content{display:flex;flex-wrap:wrap;align-items:center;gap:var(--aup-sub-form-row-gap, 8px)}}.row.layout-inline.fill{--resolved-sub-form-row-columns: auto 1fr auto auto auto}.row.layout-rail.fill{--resolved-sub-form-row-columns: auto 1fr auto}.row.buttons-on-demand .move-command{opacity:0;transition:opacity .15s ease-in-out}.row.buttons-on-demand:hover .move-command,.row.buttons-on-demand:focus-within .move-command{opacity:1}.list-errors{margin:var(--aup-sub-form-row-gap, 8px) 0 0;padding-left:1.2em;color:var(--aup-error-color, #f44336);font-size:12px}.footer{display:flex;margin-top:var(--aup-sub-form-row-gap, 8px)}.row.cdk-drag-preview{box-sizing:border-box;border-radius:4px;background:var(--aup-sub-form-row-background, #fff);box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.row.cdk-drag-preview.layout-subgrid{grid-template-columns:none;grid-auto-flow:column;justify-content:start;column-gap:var(--aup-sub-form-row-gap, 8px)}.row.cdk-drag-preview.layout-subgrid .drag-handle,.row.cdk-drag-preview.layout-subgrid .content,.row.cdk-drag-preview.layout-subgrid .move-up,.row.cdk-drag-preview.layout-subgrid .move-down,.row.cdk-drag-preview.layout-subgrid .remove,.row.cdk-drag-preview.layout-subgrid .actions{grid-area:auto}.row.cdk-drag-preview.layout-subgrid .content{grid-template-columns:none;grid-auto-flow:column;column-gap:var(--aup-sub-form-row-gap, 8px)}.row.cdk-drag-placeholder{opacity:.4}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.rows.cdk-drop-list-dragging .row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}:host([data-appearance=table]) .rows{border:var(--aup-sub-form-list-border, 1px solid rgba(0, 0, 0, .12));border-radius:var(--aup-sub-form-list-radius, 6px);overflow:hidden}:host([data-appearance=table]) .rows,:host([data-appearance=table]) .rows.layout-subgrid{row-gap:0}:host([data-appearance=table]) .row{padding:var(--aup-sub-form-list-cell-padding, 8px)}:host([data-appearance=table]) .row+.row{border-block-start:var(--aup-sub-form-list-border, 1px solid rgba(0, 0, 0, .12))}:host([data-appearance=table]) .header-row{padding:var(--aup-sub-form-list-cell-padding, 8px);background:var(--aup-sub-form-list-header-background, rgba(0, 0, 0, .02));border-block-end:var(--aup-sub-form-list-border, 1px solid rgba(0, 0, 0, .12))}:host([data-appearance=table]) .header-row .content>*{font-size:var(--aup-sub-form-list-header-font-size, 11px);font-weight:var(--aup-sub-form-list-header-font-weight, 500);letter-spacing:var(--aup-sub-form-list-header-letter-spacing, .05em);text-transform:var(--aup-sub-form-list-header-text-transform, uppercase);color:var(--aup-sub-form-list-header-color, rgba(0, 0, 0, .6))}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$7.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i2$7.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i2$7.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }, { kind: "component", type: EmptyStateComponent, selector: "aup-empty-state" }] });
|
|
4418
4459
|
}
|
|
4419
4460
|
__decorate([
|
|
4420
4461
|
Proxify(),
|
|
@@ -6328,7 +6369,7 @@ class TableActionColumnComponent extends DisposableComponent {
|
|
|
6328
6369
|
</ng-container>
|
|
6329
6370
|
</aup-more-menu>
|
|
6330
6371
|
</ng-container>
|
|
6331
|
-
`, isInline: true, styles: [":host{display:inline-flex;flex-direction:row;align-items:center}:host:last-child{padding-right:0}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ToolBarComponent, selector: "aup-tool-bar" }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density"] }, { kind: "component", type: MoreMenuComponent, selector: "aup-more-menu", inputs: ["tooltip"] }, { kind: "component", type: SeparatorComponent, selector: "aup-separator" }, { kind: "component", type: FlexComponent, selector: "aup-flex" }, { kind: "component", type: FileDownloadComponent, selector: "aup-file-download", inputs: ["download$", "download", "alignFace"] }] });
|
|
6372
|
+
`, isInline: true, styles: [":host{display:inline-flex;flex-direction:row;align-items:center}:host:last-child{padding-right:0}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ToolBarComponent, selector: "aup-tool-bar" }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }, { kind: "component", type: MoreMenuComponent, selector: "aup-more-menu", inputs: ["tooltip"] }, { kind: "component", type: SeparatorComponent, selector: "aup-separator" }, { kind: "component", type: FlexComponent, selector: "aup-flex" }, { kind: "component", type: FileDownloadComponent, selector: "aup-file-download", inputs: ["download$", "download", "alignFace"] }] });
|
|
6332
6373
|
}
|
|
6333
6374
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableActionColumnComponent, decorators: [{
|
|
6334
6375
|
type: Component,
|
|
@@ -7391,6 +7432,11 @@ class TableFilterModel extends GarbageCollector {
|
|
|
7391
7432
|
_rowPredicate;
|
|
7392
7433
|
inUpdate = new Guard();
|
|
7393
7434
|
filteredRows$;
|
|
7435
|
+
/**
|
|
7436
|
+
* The rows the search alone leaves in, before the row predicate. A filter bar counts its choices against these, so
|
|
7437
|
+
* that a count agrees with what the table would show once the choice is made.
|
|
7438
|
+
*/
|
|
7439
|
+
searchedRows$;
|
|
7394
7440
|
constructor(options) {
|
|
7395
7441
|
super();
|
|
7396
7442
|
options.disposedWith.registerDisposable(this);
|
|
@@ -7404,18 +7450,26 @@ class TableFilterModel extends GarbageCollector {
|
|
|
7404
7450
|
.mapWithNil(text => {
|
|
7405
7451
|
return isEmpty(text) ? undefined : { text, regex: new RegExp(escapeStringRegexp(text), "i") };
|
|
7406
7452
|
});
|
|
7453
|
+
const searchPredicate$ = chain(textSearch$)
|
|
7454
|
+
.mapWithNil(search => {
|
|
7455
|
+
const textSearchPredicate = this._textSearchPredicate$.value;
|
|
7456
|
+
return (row) => !search || !textSearchPredicate || textSearchPredicate(row, search.regex, search.text);
|
|
7457
|
+
}, {
|
|
7458
|
+
dependsOn: this._textSearchPredicate$,
|
|
7459
|
+
postponeWhile: this.inUpdate
|
|
7460
|
+
});
|
|
7407
7461
|
this._rowPredicate = chain(this._rowPredicate$)
|
|
7408
7462
|
.mapWithNil(predicate => {
|
|
7409
|
-
const
|
|
7410
|
-
|
|
7411
|
-
return (row) => (!predicate || predicate(row)) && (!search || !textSearchPredicate || textSearchPredicate(row, search.regex, search.text));
|
|
7463
|
+
const matchesSearch = searchPredicate$.value;
|
|
7464
|
+
return (row) => (!predicate || predicate(row)) && matchesSearch(row);
|
|
7412
7465
|
}, {
|
|
7413
|
-
dependsOn:
|
|
7466
|
+
dependsOn: searchPredicate$,
|
|
7414
7467
|
postponeWhile: this.inUpdate
|
|
7415
7468
|
});
|
|
7416
7469
|
this.filteredRows$ = chain(this._source$).select(row => {
|
|
7417
7470
|
return this._rowPredicate.value(row);
|
|
7418
7471
|
}, { dependsOn: this._rowPredicate });
|
|
7472
|
+
this.searchedRows$ = chain(this._source$).select(row => searchPredicate$.value(row), { dependsOn: searchPredicate$ });
|
|
7419
7473
|
}
|
|
7420
7474
|
get highlightText$() {
|
|
7421
7475
|
return this._searchText$.readonly$;
|
|
@@ -9125,7 +9179,7 @@ class ActivityActionsComponent extends DisposableComponent {
|
|
|
9125
9179
|
this.cancelCommandComponent.requestFocus();
|
|
9126
9180
|
}
|
|
9127
9181
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9128
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: { confirmCommand: "confirmCommand", cancelCommand: "cancelCommand", faces: "faces", confirmFace: "confirmFace", cancelFace: "cancelFace", style: "style", layout: "layout", align: "align", alignContent: "alignContent" }, host: { properties: { "attr.layout": "this.layout", "attr.align": "this.align", "attr.align-content": "this.alignContent" } }, viewQueries: [{ propertyName: "confirmCommandComponent", first: true, predicate: ["confirmCommandComponent"], descendants: true }, { propertyName: "cancelCommandComponent", first: true, predicate: ["cancelCommandComponent"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"content\">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf=\"hasCancelFace()\">\n <aup-command #cancelCommandComponent class=\"cancel\" [command]=\"cancelCommand\" [face]=\"cancelFace\" data-cy=\"cancel-command\"></aup-command>\n</ng-container>\n<ng-container *ngIf=\"hasConfirmFace()\">\n <aup-command #confirmCommandComponent class=\"confirm\" [command]=\"confirmCommand\" [face]=\"confirmFace\" data-cy=\"confirm-command\"></aup-command>\n</ng-container>\n", styles: [":host{display:grid;grid-template-rows:auto;align-items:center;justify-content:end;--resolved-activity-actions-gap: var(--activity-actions-gap, 8px);grid-gap:var(--resolved-activity-actions-gap)}:host[layout=block][align=start]{grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr}:host[layout=block][align=start] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=end]{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host[layout=block][align=end] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=stretch]{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}:host[layout=inline]{grid-template-areas:\"confirm cancel content\";grid-template-columns:auto auto 1fr}:host[layout=inline] .cancel{margin-left:var(--resolved-activity-actions-gap)}:host .cancel{grid-area:cancel}:host .confirm{grid-area:confirm}:host .content{display:flex;flex-direction:row;align-items:center}:host[align-content=start] .content{justify-items:start}:host[align-content=end]{justify-items:end}:host[align-content=center]{justify-items:center}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density"] }] });
|
|
9182
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: { confirmCommand: "confirmCommand", cancelCommand: "cancelCommand", faces: "faces", confirmFace: "confirmFace", cancelFace: "cancelFace", style: "style", layout: "layout", align: "align", alignContent: "alignContent" }, host: { properties: { "attr.layout": "this.layout", "attr.align": "this.align", "attr.align-content": "this.alignContent" } }, viewQueries: [{ propertyName: "confirmCommandComponent", first: true, predicate: ["confirmCommandComponent"], descendants: true }, { propertyName: "cancelCommandComponent", first: true, predicate: ["cancelCommandComponent"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"content\">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf=\"hasCancelFace()\">\n <aup-command #cancelCommandComponent class=\"cancel\" [command]=\"cancelCommand\" [face]=\"cancelFace\" data-cy=\"cancel-command\"></aup-command>\n</ng-container>\n<ng-container *ngIf=\"hasConfirmFace()\">\n <aup-command #confirmCommandComponent class=\"confirm\" [command]=\"confirmCommand\" [face]=\"confirmFace\" data-cy=\"confirm-command\"></aup-command>\n</ng-container>\n", styles: [":host{display:grid;grid-template-rows:auto;align-items:center;justify-content:end;--resolved-activity-actions-gap: var(--activity-actions-gap, 8px);grid-gap:var(--resolved-activity-actions-gap)}:host[layout=block][align=start]{grid-template-areas:\"cancel confirm content\";grid-template-columns:auto auto 1fr}:host[layout=block][align=start] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=end]{grid-template-areas:\"content cancel confirm\";grid-template-columns:1fr auto auto}:host[layout=block][align=end] .confirm{margin-left:var(--resolved-activity-actions-gap)}:host[layout=block][align=stretch]{grid-template-areas:\"cancel content confirm\";grid-template-columns:auto 1fr auto}:host[layout=inline]{grid-template-areas:\"confirm cancel content\";grid-template-columns:auto auto 1fr}:host[layout=inline] .cancel{margin-left:var(--resolved-activity-actions-gap)}:host .cancel{grid-area:cancel}:host .confirm{grid-area:confirm}:host .content{display:flex;flex-direction:row;align-items:center}:host[align-content=start] .content{justify-items:start}:host[align-content=end]{justify-items:end}:host[align-content=center]{justify-items:center}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }] });
|
|
9129
9183
|
}
|
|
9130
9184
|
__decorate([
|
|
9131
9185
|
Proxify(),
|
|
@@ -9192,8 +9246,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
9192
9246
|
class ActivityBodyComponent extends DisposableComponent {
|
|
9193
9247
|
fullWidth = false;
|
|
9194
9248
|
fullHeight = false;
|
|
9249
|
+
/**
|
|
9250
|
+
* Whether the body scrolls inside the height its activity leaves it, with the title and the actions kept in place. The
|
|
9251
|
+
* activity must lay out as a column and bound its own height.
|
|
9252
|
+
*/
|
|
9253
|
+
scroll = false;
|
|
9195
9254
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityBodyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
9196
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: { fullWidth: "fullWidth", fullHeight: "fullHeight" }, host: { properties: { "class.full-width": "this.fullWidth", "class.full-height": "this.fullHeight" } }, usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: ["<ng-content></ng-content>\n"] });
|
|
9255
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: { fullWidth: "fullWidth", fullHeight: "fullHeight", scroll: "scroll" }, host: { properties: { "class.full-width": "this.fullWidth", "class.full-height": "this.fullHeight", "class.scroll": "this.scroll" } }, usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: ["<ng-content></ng-content>\n"] });
|
|
9197
9256
|
}
|
|
9198
9257
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ActivityBodyComponent, decorators: [{
|
|
9199
9258
|
type: Component,
|
|
@@ -9208,6 +9267,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
9208
9267
|
}, {
|
|
9209
9268
|
type: HostBinding,
|
|
9210
9269
|
args: ["class.full-height"]
|
|
9270
|
+
}], scroll: [{
|
|
9271
|
+
type: Input
|
|
9272
|
+
}, {
|
|
9273
|
+
type: HostBinding,
|
|
9274
|
+
args: ["class.scroll"]
|
|
9211
9275
|
}] } });
|
|
9212
9276
|
|
|
9213
9277
|
class InteractionServiceRoutingAdapter {
|
|
@@ -9300,12 +9364,15 @@ class InteractionService {
|
|
|
9300
9364
|
return this.createModalInteractionContextDisposedWith(disposable);
|
|
9301
9365
|
}
|
|
9302
9366
|
/**
|
|
9303
|
-
* Creates a new model interaction context that will be disposed along with the component.
|
|
9367
|
+
* Creates a new model interaction context that will be disposed along with the component. Its activities
|
|
9368
|
+
* open where `factory` puts them, a dialog unless the app provides otherwise; pass one, such as
|
|
9369
|
+
* `BottomSheetInteractionContextFactory`, for this context alone to use another surface.
|
|
9304
9370
|
* @param disposable
|
|
9371
|
+
* @param factory
|
|
9305
9372
|
*/
|
|
9306
|
-
createModalInteractionContextDisposedWith(disposable) {
|
|
9373
|
+
createModalInteractionContextDisposedWith(disposable, factory = this.modelInteractionContextFactory) {
|
|
9307
9374
|
// TODO: look at making the registry the factory..
|
|
9308
|
-
return
|
|
9375
|
+
return factory.createInteractionContext("modal", new InteractionService.ApiAdapter(this.placeRouter, this.modalInteractionRegistry));
|
|
9309
9376
|
}
|
|
9310
9377
|
registerInplaceInteractionContext(interactionContext) {
|
|
9311
9378
|
// TODO: look at making the registry the factory..
|
|
@@ -10321,6 +10388,7 @@ class RemoveLastInteractionFromUrlNavigationSession extends NavigationSession {
|
|
|
10321
10388
|
finished;
|
|
10322
10389
|
gotPopState;
|
|
10323
10390
|
selfHealing = false;
|
|
10391
|
+
restoringPlaceParameters = false;
|
|
10324
10392
|
constructor(context, startingUrl, interactionFreeUrl) {
|
|
10325
10393
|
super(context, startingUrl);
|
|
10326
10394
|
this.interactionFreeUrl = interactionFreeUrl;
|
|
@@ -10364,11 +10432,30 @@ class RemoveLastInteractionFromUrlNavigationSession extends NavigationSession {
|
|
|
10364
10432
|
this.context.finishRoutingSession();
|
|
10365
10433
|
this.finished.resolve(true);
|
|
10366
10434
|
}
|
|
10435
|
+
/**
|
|
10436
|
+
* The pop lands on the history entry from before the interaction opened, so it also takes back any place parameter
|
|
10437
|
+
* changed while the interaction was open. A filter chosen in a sheet is one: the place wrote it into the
|
|
10438
|
+
* interaction's entry, and the pop restores the filter the page had before. When the popped url differs from the
|
|
10439
|
+
* interaction-free url, the latter is pushed after it, through the router so that its state follows. A change made
|
|
10440
|
+
* outside an interaction pushes an entry too (PlaceRouter.notifyVisitSegmentChanged), so Back undoes either.
|
|
10441
|
+
*/
|
|
10367
10442
|
// @Trace()
|
|
10368
10443
|
onRouterEnd(event) {
|
|
10369
|
-
if (this.
|
|
10444
|
+
if (this.selfHealing || this.restoringPlaceParameters) {
|
|
10370
10445
|
this.finishUp();
|
|
10371
10446
|
}
|
|
10447
|
+
else if (this.gotPopState) {
|
|
10448
|
+
if (this.poppedUrlLostPlaceParameters()) {
|
|
10449
|
+
this.restoringPlaceParameters = true;
|
|
10450
|
+
this.context.navigateByUrl(this.interactionFreeUrl, { replaceUrl: false });
|
|
10451
|
+
}
|
|
10452
|
+
else {
|
|
10453
|
+
this.finishUp();
|
|
10454
|
+
}
|
|
10455
|
+
}
|
|
10456
|
+
}
|
|
10457
|
+
poppedUrlLostPlaceParameters() {
|
|
10458
|
+
return this.urlService.getCurrentLocationUrlSnapshot().urlTree.toString() !== this.interactionFreeUrl.urlTree.toString();
|
|
10372
10459
|
}
|
|
10373
10460
|
// @Trace()
|
|
10374
10461
|
handleCanDeactivateCancelledEventScenario(locationTriggerUrl) {
|
|
@@ -11726,7 +11813,10 @@ class PlaceRouter extends GarbageCollector {
|
|
|
11726
11813
|
// deliberate selection is reachable via the back button. Automatic refinements
|
|
11727
11814
|
// (auto-select-first / select-nearest corrections) tag their transaction metadata and a
|
|
11728
11815
|
// registered skipHistoryIf predicate replaces instead - see skipHistoryIf.
|
|
11729
|
-
|
|
11816
|
+
// A change made while an interaction is open replaces the interaction's entry. Closing the interaction pops
|
|
11817
|
+
// that entry, and a pushed one would leave the pop on an entry that still holds the interaction. The closing
|
|
11818
|
+
// session then pushes the change after the entry it pops to (RemoveLastInteractionFromUrlNavigationSession).
|
|
11819
|
+
const replaceUrl = this.interactionService.isActive() || this.shouldReplaceHistory(metadata);
|
|
11730
11820
|
await this.doNavigation(visit, () => {
|
|
11731
11821
|
const urlSnapshot = this.urlService
|
|
11732
11822
|
.parseUrl(this.angularRouter.routerState.snapshot.url)
|
|
@@ -11913,7 +12003,7 @@ class AlertRendererComponent extends DisposableComponent {
|
|
|
11913
12003
|
});
|
|
11914
12004
|
}
|
|
11915
12005
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AlertRendererComponent, deps: [{ token: ActivityContext, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
11916
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AlertRendererComponent, selector: "aup-alert-renderer", inputs: { config: "config", confirmCommand: "confirmCommand" }, usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\"></aup-activity-actions>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth", "fullHeight"] }] });
|
|
12006
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AlertRendererComponent, selector: "aup-alert-renderer", inputs: { config: "config", confirmCommand: "confirmCommand" }, usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\"></aup-activity-actions>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth", "fullHeight", "scroll"] }] });
|
|
11917
12007
|
}
|
|
11918
12008
|
__decorate([
|
|
11919
12009
|
Proxify(),
|
|
@@ -11974,7 +12064,7 @@ class ConfirmRendererComponent extends AlertRendererComponent {
|
|
|
11974
12064
|
});
|
|
11975
12065
|
}
|
|
11976
12066
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmRendererComponent, deps: [{ token: ActivityContext, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
11977
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmRendererComponent, selector: "aup-confirm-renderer", inputs: { cancelCommand: "cancelCommand" }, viewQueries: [{ propertyName: "activityActions", first: true, predicate: ActivityActionsComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth", "fullHeight"] }] });
|
|
12067
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmRendererComponent, selector: "aup-confirm-renderer", inputs: { cancelCommand: "cancelCommand" }, viewQueries: [{ propertyName: "activityActions", first: true, predicate: ActivityActionsComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }, { kind: "component", type: ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth", "fullHeight", "scroll"] }] });
|
|
11978
12068
|
}
|
|
11979
12069
|
__decorate([
|
|
11980
12070
|
Proxify(),
|
|
@@ -12549,10 +12639,14 @@ class ActivityContainerComponent extends AbstractInteractionContext {
|
|
|
12549
12639
|
getSelectedOutlet() {
|
|
12550
12640
|
return this.activityOutlets.toArray()[this.tabs.selectedIndex];
|
|
12551
12641
|
}
|
|
12642
|
+
/**
|
|
12643
|
+
* The first activity appears in place, and only a nested one slides in. The tab group has already
|
|
12644
|
+
* rendered, empty, by the time the first activity's tab arrives, so Material treats that tab as
|
|
12645
|
+
* moving from a selected one and would slide it in from the side; the surface opening around it
|
|
12646
|
+
* is the only entrance it needs.
|
|
12647
|
+
*/
|
|
12552
12648
|
getTabAnimationDuration() {
|
|
12553
|
-
|
|
12554
|
-
// return s
|
|
12555
|
-
return this.animationDuration;
|
|
12649
|
+
return this.activityRefs.length > 1 ? this.animationDuration : "0ms";
|
|
12556
12650
|
}
|
|
12557
12651
|
getTabAnimationDurationInMillis() {
|
|
12558
12652
|
const match = this.animationDuration.match(/(\d+)(.*)/);
|
|
@@ -12861,7 +12955,7 @@ class InlineActivityTriggerComponent extends AbstractActivityTriggerComponent {
|
|
|
12861
12955
|
super();
|
|
12862
12956
|
}
|
|
12863
12957
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: InlineActivityTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12864
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: InlineActivityTriggerComponent, selector: "aup-inline-activity-trigger", viewQueries: [{ propertyName: "_interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-in-place-interaction-context #interactionContext [animateFirstActivity]=\"false\">\n <aup-command [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n</aup-in-place-interaction-context>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density"] }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["animateFirstActivity", "syncWithRoutes"], outputs: ["started", "finished"] }] });
|
|
12958
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: InlineActivityTriggerComponent, selector: "aup-inline-activity-trigger", viewQueries: [{ propertyName: "_interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-in-place-interaction-context #interactionContext [animateFirstActivity]=\"false\">\n <aup-command [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n</aup-in-place-interaction-context>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["animateFirstActivity", "syncWithRoutes"], outputs: ["started", "finished"] }] });
|
|
12865
12959
|
}
|
|
12866
12960
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: InlineActivityTriggerComponent, decorators: [{
|
|
12867
12961
|
type: Component,
|
|
@@ -12882,7 +12976,7 @@ class ModalActivityTriggerComponent extends AbstractActivityTriggerComponent {
|
|
|
12882
12976
|
this._interactionContext = interactionService.createModalInteractionContextDisposedWith(this);
|
|
12883
12977
|
}
|
|
12884
12978
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ModalActivityTriggerComponent, deps: [{ token: InteractionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12885
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ModalActivityTriggerComponent, selector: "aup-modal-activity-trigger", usesInheritance: true, ngImport: i0, template: "<aup-command [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density"] }] });
|
|
12979
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ModalActivityTriggerComponent, selector: "aup-modal-activity-trigger", usesInheritance: true, ngImport: i0, template: "<aup-command [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }] });
|
|
12886
12980
|
}
|
|
12887
12981
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ModalActivityTriggerComponent, decorators: [{
|
|
12888
12982
|
type: Component,
|
|
@@ -12946,7 +13040,9 @@ class PopupInteractionContextComponent extends DisposableComponent {
|
|
|
12946
13040
|
overlayRef.updatePosition();
|
|
12947
13041
|
})).concat(overlayRef.backdropClick().subscribe(cancelEverything))
|
|
12948
13042
|
.concat(overlayRef.keydownEvents().subscribe(async (event) => {
|
|
12949
|
-
|
|
13043
|
+
// An unbound `cancelOnEscape` leaves its model without a value: the `true` it declares is not stored there.
|
|
13044
|
+
// The check used to read that as false, so Esc closed no popup unless its caller bound the input.
|
|
13045
|
+
if ((this.cancelOnEscape$.value ?? true) && event.code === "Escape" && this.interactionContext.isActive()) {
|
|
12950
13046
|
await this.interactionContext.cancelActiveActivity();
|
|
12951
13047
|
}
|
|
12952
13048
|
}));
|
|
@@ -13029,7 +13125,7 @@ class PopupActivityTriggerComponent extends AbstractActivityTriggerComponent {
|
|
|
13029
13125
|
return this._interactionContext;
|
|
13030
13126
|
}
|
|
13031
13127
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupActivityTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13032
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PopupActivityTriggerComponent, selector: "aup-popup-activity-trigger", inputs: { anchorX: "anchorX", anchorY: "anchorY" }, viewQueries: [{ propertyName: "_interactionContext", first: true, predicate: PopupInteractionContextComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-popup-interaction-context [anchorX]=\"anchorX\" [anchorY]=\"anchorY\">\n <aup-command [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n</aup-popup-interaction-context>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density"] }, { kind: "component", type: PopupInteractionContextComponent, selector: "aup-popup-interaction-context", inputs: ["anchorX", "anchorY", "cancelOnEscape$", "cancelOnEscape"] }] });
|
|
13128
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PopupActivityTriggerComponent, selector: "aup-popup-activity-trigger", inputs: { anchorX: "anchorX", anchorY: "anchorY" }, viewQueries: [{ propertyName: "_interactionContext", first: true, predicate: PopupInteractionContextComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-popup-interaction-context [anchorX]=\"anchorX\" [anchorY]=\"anchorY\">\n <aup-command [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n</aup-popup-interaction-context>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }, { kind: "component", type: PopupInteractionContextComponent, selector: "aup-popup-interaction-context", inputs: ["anchorX", "anchorY", "cancelOnEscape$", "cancelOnEscape"] }] });
|
|
13033
13129
|
}
|
|
13034
13130
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupActivityTriggerComponent, decorators: [{
|
|
13035
13131
|
type: Component,
|
|
@@ -13086,7 +13182,7 @@ class AddCardActivityComponent extends AbstractActivityTriggerComponent {
|
|
|
13086
13182
|
return this.interactionStyle === 'inline';
|
|
13087
13183
|
}
|
|
13088
13184
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AddCardActivityComponent, deps: [{ token: InteractionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
13089
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AddCardActivityComponent, selector: "aup-add-card-activity", inputs: { interactionStyle: "interactionStyle", renderAs: "renderAs" }, host: { properties: { "class": "this.activityTypeClass", "class.not-card": "this.notCard" } }, viewQueries: [{ propertyName: "inlineInteractionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\" [pectinCommand]=\"startActivityCommand\">\n <aup-command *ngIf=\"isRenderAsButton()\" [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n <section *ngIf=\"isRenderAsCard()\" class=\"face-wrapper\">\n <aup-command-face class=\"mat-button\" [faces]=\"faceList.value\"></aup-command-face>\n </section>\n</aup-in-place-interaction-context>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch;background-color:#fff}:host[interactionStyle=inline][renderas=card]:not(.active){transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=inline][renderas=card]:not(.active):hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=inline][renderas=card]:not(.active):hover{border-color:transparent;background-color:#fff;color:#0000008a}:host[interactionStyle=modal][renderas=card]{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=modal][renderas=card]:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=modal][renderas=card]:hover{border-color:transparent;background-color:#fff;color:#0000008a}:host-context(aup-card-container)[renderas=button]{align-self:start}section.face-wrapper{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}aup-in-place-interaction-context{flex:1}aup-in-place-interaction-context.active{border:3px solid #6273c7;border-radius:4px;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["animateFirstActivity", "syncWithRoutes"], outputs: ["started", "finished"] }] });
|
|
13185
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AddCardActivityComponent, selector: "aup-add-card-activity", inputs: { interactionStyle: "interactionStyle", renderAs: "renderAs" }, host: { properties: { "class": "this.activityTypeClass", "class.not-card": "this.notCard" } }, viewQueries: [{ propertyName: "inlineInteractionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\" [pectinCommand]=\"startActivityCommand\">\n <aup-command *ngIf=\"isRenderAsButton()\" [command]=\"startActivityCommand\" [face$]=\"face$\" [alignFace]=\"alignFace\"></aup-command>\n <section *ngIf=\"isRenderAsCard()\" class=\"face-wrapper\">\n <aup-command-face class=\"mat-button\" [faces]=\"faceList.value\"></aup-command-face>\n </section>\n</aup-in-place-interaction-context>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch;background-color:#fff}:host[interactionStyle=inline][renderas=card]:not(.active){transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=inline][renderas=card]:not(.active):hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=inline][renderas=card]:not(.active):hover{border-color:transparent;background-color:#fff;color:#0000008a}:host[interactionStyle=modal][renderas=card]{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:#0000008a;background-color:#fffc}:host[interactionStyle=modal][renderas=card]:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host[interactionStyle=modal][renderas=card]:hover{border-color:transparent;background-color:#fff;color:#0000008a}:host-context(aup-card-container)[renderas=button]{align-self:start}section.face-wrapper{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}aup-in-place-interaction-context{flex:1}aup-in-place-interaction-context.active{border:3px solid #6273c7;border-radius:4px;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["animateFirstActivity", "syncWithRoutes"], outputs: ["started", "finished"] }] });
|
|
13090
13186
|
}
|
|
13091
13187
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AddCardActivityComponent, decorators: [{
|
|
13092
13188
|
type: Component,
|
|
@@ -13532,7 +13628,7 @@ class InlineStringEditorComponent extends DisposableComponent {
|
|
|
13532
13628
|
return !this.editingEnabled$.value;
|
|
13533
13629
|
}
|
|
13534
13630
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: InlineStringEditorComponent, deps: [{ token: InteractionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
13535
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: InlineStringEditorComponent, selector: "aup-inline-string-editor", inputs: { editorModel: "editorModel", facesModel: "facesModel", faces: "faces", label: "label", placeHolder: "placeHolder", placeHolder$: "placeHolder$" }, host: { properties: { "class.disabled": "this.isDisabled" } }, viewQueries: [{ propertyName: "interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"container\" *ngIf=\"!editorModel.isEditing()\">\n <mat-form-field floatLabel=\"always\" (click)=\"startEdit()\"\n [class.editable]=\"editingEnabled$.value\" [class.empty]=\"isEmpty()\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeHolder}}\"\n [ngModel]=\"editorModel.valueModel.value\"\n [disabled]=\"true\"\n >\n <!-- <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>-->\n <!-- <mat-error *ngIf=\"hasErrors()\">{{firstError}}</mat-error>-->\n <!-- <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>-->\n </mat-form-field>\n <aup-command *ngIf=\"editCommand.enabled$.value\" [command]=\"editCommand\" [face$]=\"editFaceModel\"></aup-command>\n</div>\n<aup-in-place-interaction-context [animateFirstActivity]=\"false\"></aup-in-place-interaction-context>\n", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density"] }, { kind: "directive", type: i2$5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["animateFirstActivity", "syncWithRoutes"], outputs: ["started", "finished"] }] });
|
|
13631
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: InlineStringEditorComponent, selector: "aup-inline-string-editor", inputs: { editorModel: "editorModel", facesModel: "facesModel", faces: "faces", label: "label", placeHolder: "placeHolder", placeHolder$: "placeHolder$" }, host: { properties: { "class.disabled": "this.isDisabled" } }, viewQueries: [{ propertyName: "interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"container\" *ngIf=\"!editorModel.isEditing()\">\n <mat-form-field floatLabel=\"always\" (click)=\"startEdit()\"\n [class.editable]=\"editingEnabled$.value\" [class.empty]=\"isEmpty()\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeHolder}}\"\n [ngModel]=\"editorModel.valueModel.value\"\n [disabled]=\"true\"\n >\n <!-- <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>-->\n <!-- <mat-error *ngIf=\"hasErrors()\">{{firstError}}</mat-error>-->\n <!-- <aup-icon *ngIf=\"iconPrefix\" matPrefix [icon]=\"iconPrefix\"></aup-icon>-->\n </mat-form-field>\n <aup-command *ngIf=\"editCommand.enabled$.value\" [command]=\"editCommand\" [face$]=\"editFaceModel\"></aup-command>\n</div>\n<aup-in-place-interaction-context [animateFirstActivity]=\"false\"></aup-in-place-interaction-context>\n", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace", "density", "fill", "labelOverflow"] }, { kind: "directive", type: i2$5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["animateFirstActivity", "syncWithRoutes"], outputs: ["started", "finished"] }] });
|
|
13536
13632
|
}
|
|
13537
13633
|
__decorate([
|
|
13538
13634
|
Proxify(),
|
|
@@ -13939,6 +14035,7 @@ class InteractionModule {
|
|
|
13939
14035
|
AlertRendererComponent], imports: [CommonModule,
|
|
13940
14036
|
MatButtonModule,
|
|
13941
14037
|
MatDialogModule,
|
|
14038
|
+
MatBottomSheetModule,
|
|
13942
14039
|
MatTabsModule,
|
|
13943
14040
|
PortalModule,
|
|
13944
14041
|
RouterModule,
|
|
@@ -13975,6 +14072,7 @@ class InteractionModule {
|
|
|
13975
14072
|
], imports: [CommonModule,
|
|
13976
14073
|
MatButtonModule,
|
|
13977
14074
|
MatDialogModule,
|
|
14075
|
+
MatBottomSheetModule,
|
|
13978
14076
|
MatTabsModule,
|
|
13979
14077
|
PortalModule,
|
|
13980
14078
|
RouterModule,
|
|
@@ -13993,6 +14091,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
13993
14091
|
CommonModule,
|
|
13994
14092
|
MatButtonModule,
|
|
13995
14093
|
MatDialogModule,
|
|
14094
|
+
MatBottomSheetModule,
|
|
13996
14095
|
MatTabsModule,
|
|
13997
14096
|
PortalModule,
|
|
13998
14097
|
RouterModule,
|
|
@@ -14931,7 +15030,9 @@ let nextInstanceId = 0;
|
|
|
14931
15030
|
* Only the current place's group starts open, unless {@link groupsStartOpen} opens every group.
|
|
14932
15031
|
*
|
|
14933
15032
|
* The rail collapses to an icon strip from the Menu row, and expands over the content when the
|
|
14934
|
-
* pointer rests on it.
|
|
15033
|
+
* pointer rests on it. A touch has no hover, so on touch a tap on a collapsed group expands the rail
|
|
15034
|
+
* over the content instead of navigating, with that group open; tapping a page, the backdrop, the
|
|
15035
|
+
* Menu row or Esc closes it again. The pinned state is kept in localStorage under {@link persistKey}.
|
|
14935
15036
|
*
|
|
14936
15037
|
* {@link currentPath$} names where the user is the way the rail does, for a breadcrumb.
|
|
14937
15038
|
*
|
|
@@ -14960,6 +15061,7 @@ let nextInstanceId = 0;
|
|
|
14960
15061
|
* --nav-current-chevron-color: #757575; // the current group's chevron: it can't be collapsed
|
|
14961
15062
|
* --nav-focus-color: rgba(255, 255, 255, 0.6);
|
|
14962
15063
|
* --nav-overlay-shadow: 6px 0 18px rgba(0, 0, 0, 0.28); // the hover-expanded rail
|
|
15064
|
+
* --nav-backdrop-color: rgba(0, 0, 0, 0.32); // behind the rail a tap expanded
|
|
14963
15065
|
* --nav-z-index: 100; // lifts the hover-expanded rail over the content
|
|
14964
15066
|
* }
|
|
14965
15067
|
*
|
|
@@ -15021,9 +15123,14 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
15021
15123
|
navEndTemplate;
|
|
15022
15124
|
/** The pointer has rested on the collapsed rail, so it is expanded over the content. */
|
|
15023
15125
|
hovering$ = new MutableValueModel(false);
|
|
15024
|
-
/**
|
|
15126
|
+
/**
|
|
15127
|
+
* A tap on a collapsed group has expanded the rail over the content, with that group open. It
|
|
15128
|
+
* stays until the user goes somewhere or dismisses it: a touch never leaves, as a pointer does.
|
|
15129
|
+
*/
|
|
15130
|
+
tapOpen$ = new MutableValueModel(false);
|
|
15131
|
+
/** Labels and children are shown: pinned expanded, or expanded over the content. */
|
|
15025
15132
|
open$;
|
|
15026
|
-
/**
|
|
15133
|
+
/** Expanded over the content, by hover or a tap, as opposed to pinned expanded beside it. */
|
|
15027
15134
|
overlay$;
|
|
15028
15135
|
navItems$;
|
|
15029
15136
|
/**
|
|
@@ -15048,14 +15155,16 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
15048
15155
|
animationsDisabled = true;
|
|
15049
15156
|
idPrefix = `aup-side-nav-${nextInstanceId++}`;
|
|
15050
15157
|
hoverTimer;
|
|
15158
|
+
/** The pointer that pressed last, for the click it is about to make. */
|
|
15159
|
+
pressedWith;
|
|
15051
15160
|
resetHandle = null;
|
|
15052
15161
|
constructor(router) {
|
|
15053
15162
|
super(router);
|
|
15054
15163
|
const { chain, when } = Dsl.disposeWith(this);
|
|
15055
15164
|
const { accessGuard$ } = router.authService;
|
|
15056
15165
|
const activeVisit$ = router.activeVisit$;
|
|
15057
|
-
this.open$ = chain.booleanValue(this.expanded$).or(this.hovering$);
|
|
15058
|
-
this.overlay$ = chain.booleanValue(this.hovering$).andNot(this.expanded$);
|
|
15166
|
+
this.open$ = chain.booleanValue(this.expanded$).or(this.hovering$).or(this.tapOpen$);
|
|
15167
|
+
this.overlay$ = chain.booleanValue(this.hovering$).or(this.tapOpen$).andNot(this.expanded$);
|
|
15059
15168
|
// Where the user is, and what they may see, postponed like the top-level list it extends: child
|
|
15060
15169
|
// authorisation settles during a navigation, and reading it mid-flight would flicker.
|
|
15061
15170
|
const entries$ = chain(this.menuItems).mapAll(items => {
|
|
@@ -15140,13 +15249,23 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
15140
15249
|
cancelAnimationFrame(this.resetHandle);
|
|
15141
15250
|
}
|
|
15142
15251
|
});
|
|
15143
|
-
this.viewStateDependsOn(this.navItems$, this.open$, this.overlay$, this.expanded$);
|
|
15252
|
+
this.viewStateDependsOn(this.navItems$, this.open$, this.overlay$, this.expanded$, this.tapOpen$);
|
|
15144
15253
|
}
|
|
15145
|
-
/**
|
|
15254
|
+
/**
|
|
15255
|
+
* A group header toggles while the rail is open, and a touch on a collapsed one opens the rail
|
|
15256
|
+
* with it; anything else navigates.
|
|
15257
|
+
*/
|
|
15146
15258
|
activate(item) {
|
|
15259
|
+
const touch = this.pressedWith === 'touch';
|
|
15260
|
+
this.pressedWith = undefined;
|
|
15147
15261
|
if (item.group && this.open$.value) {
|
|
15148
15262
|
this.toggleGroup(item);
|
|
15149
15263
|
}
|
|
15264
|
+
else if (item.group && touch) {
|
|
15265
|
+
// Navigating would land on one child with no way to reach its siblings.
|
|
15266
|
+
this.openGroup(item.place);
|
|
15267
|
+
this.tapOpen$.value = true;
|
|
15268
|
+
}
|
|
15150
15269
|
else {
|
|
15151
15270
|
// A group on the collapsed rail navigates to its own place, and the router's
|
|
15152
15271
|
// redirectToFirstChild lands on the child visited last (rememberLastChild), or else the first
|
|
@@ -15155,10 +15274,24 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
15155
15274
|
}
|
|
15156
15275
|
}
|
|
15157
15276
|
navigateTo(place) {
|
|
15277
|
+
this.tapOpen$.value = false;
|
|
15158
15278
|
this.placeRouter.navigate(place.component);
|
|
15159
15279
|
}
|
|
15280
|
+
/** Pins the rail expanded or collapsed, or closes the rail a tap expanded. */
|
|
15160
15281
|
toggleMenu() {
|
|
15161
|
-
|
|
15282
|
+
if (this.tapOpen$.value) {
|
|
15283
|
+
this.dismiss();
|
|
15284
|
+
}
|
|
15285
|
+
else {
|
|
15286
|
+
this.pin(!this.expanded);
|
|
15287
|
+
}
|
|
15288
|
+
}
|
|
15289
|
+
/** Closes the rail a tap expanded over the content. */
|
|
15290
|
+
dismiss() {
|
|
15291
|
+
this.tapOpen$.value = false;
|
|
15292
|
+
}
|
|
15293
|
+
onRailPointerDown(event) {
|
|
15294
|
+
this.pressedWith = event.pointerType;
|
|
15162
15295
|
}
|
|
15163
15296
|
expandMenu() {
|
|
15164
15297
|
this.pin(true);
|
|
@@ -15167,8 +15300,8 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
15167
15300
|
this.pin(false);
|
|
15168
15301
|
}
|
|
15169
15302
|
onRailEnter(event) {
|
|
15170
|
-
// A touch has no hover: a tap on the collapsed rail navigates
|
|
15171
|
-
//
|
|
15303
|
+
// A touch has no hover: a tap on the collapsed rail navigates or opens a group (see activate),
|
|
15304
|
+
// and expanding over the content after every tap would cover whatever the next one was meant for.
|
|
15172
15305
|
if (this.expanded || event?.pointerType === 'touch') {
|
|
15173
15306
|
return;
|
|
15174
15307
|
}
|
|
@@ -15206,6 +15339,7 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
15206
15339
|
pin(expanded) {
|
|
15207
15340
|
this.clearHoverTimer();
|
|
15208
15341
|
this.hovering$.value = false;
|
|
15342
|
+
this.tapOpen$.value = false;
|
|
15209
15343
|
this.expanded = expanded;
|
|
15210
15344
|
this.writePinnedState(expanded);
|
|
15211
15345
|
}
|
|
@@ -15245,7 +15379,7 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
15245
15379
|
}
|
|
15246
15380
|
}
|
|
15247
15381
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SidePlaceNavigationComponent, deps: [{ token: PlaceRouter }], target: i0.ɵɵFactoryTarget.Component });
|
|
15248
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SidePlaceNavigationComponent, selector: "aup-side-place-navigation", inputs: { expanded$: "expanded$", expanded: "expanded", collapsible: "collapsible", hoverExpandDelay: "hoverExpandDelay", persistKey: "persistKey", groupsStartOpen: "groupsStartOpen" }, host: { properties: { "class.expanded": "this.expanded" } }, queries: [{ propertyName: "navEndTemplate", first: true, predicate: ["navEndTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<nav class=\"rail\"\n [class.open]=\"open$.value\"\n [class.overlay]=\"overlay$.value\"\n (pointerenter)=\"onRailEnter($event)\"\n (pointerleave)=\"onRailLeave()\">\n\n <button *ngIf=\"collapsible\" type=\"button\" class=\"menu-toggle\"\n [attr.aria-expanded]=\"expanded\"\n (click)=\"toggleMenu()\">\n <span class=\"icon\"><aup-icon [icon]=\"expanded ? 'mat:menu_open' : 'mat:menu'\"></aup-icon></span>\n <span class=\"label\">Menu</span>\n </button>\n\n <ul class=\"items\" [@.disabled]=\"animationsDisabled\">\n <li *ngFor=\"let item of navItems$.value; trackBy: trackByNavItem\">\n <!-- A group standing in for its hidden current child is the current item, not the page. -->\n <button type=\"button\" class=\"item\"\n [class.current]=\"item.current\"\n [class.highlighted]=\"item.highlighted\"\n [title]=\"item.face.text()\"\n [attr.aria-expanded]=\"item.group ? item.showChildren : null\"\n [attr.aria-controls]=\"item.group ? item.childListId : null\"\n [attr.aria-current]=\"item.highlighted ? (item.group ? 'true' : 'page') : null\"\n (click)=\"activate(item)\">\n <span class=\"icon\"><aup-icon *ngIf=\"item.face.icon()\" [icon]=\"item.face.icon()\"></aup-icon></span>\n <span class=\"label\">{{item.face.text()}}</span>\n <aup-icon *ngIf=\"item.group\" class=\"chevron\" [class.open]=\"item.showChildren\" icon=\"mat:expand_more\"></aup-icon>\n </button>\n\n <!-- Always present, so the header's aria-controls names a real element while it's closed. -->\n <div *ngIf=\"item.group\" [id]=\"item.childListId\">\n <ul *ngIf=\"item.showChildren\" class=\"children\" [@slideDownOnEnter]=\"childListAnimation\">\n <li *ngFor=\"let child of item.children; trackBy: trackByNavChild\">\n <button type=\"button\" class=\"child\"\n [class.current]=\"child.current\"\n [attr.aria-current]=\"child.current ? 'page' : null\"\n (click)=\"navigateTo(child.place)\">{{child.face.text()}}</button>\n </li>\n </ul>\n </div>\n </li>\n </ul>\n\n <div *ngIf=\"navEndTemplate\" class=\"nav-end\">\n <ng-container [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n </div>\n</nav>\n", styles: [":host{--resolved-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 232px);--resolved-background-color: var(--nav-background-color, #555);--resolved-color: var(--nav-color, #fff);--resolved-item-color: var(--nav-item-color, #eee);--resolved-child-color: var(--nav-child-color, #d0d0d0);--resolved-current-background: var(--nav-current-background, #3a3a3a);--resolved-hover-background: var(--nav-hover-background, #4c4c4c);--resolved-chevron-color: var(--nav-chevron-color, #bdbdbd);--resolved-current-chevron-color: var(--nav-current-chevron-color, #757575);--resolved-focus-color: var(--nav-focus-color, rgba(255, 255, 255, .6));display:block;position:relative;z-index:var(--nav-z-index, 100);flex:none;width:var(--resolved-width);transition:width .22s ease}:host.expanded{width:var(--resolved-expanded-width)}.rail{position:absolute;inset:0 auto 0 0;width:var(--resolved-width);display:flex;flex-direction:column;overflow:hidden;color:var(--resolved-color);background-color:var(--resolved-background-color);box-shadow:none;transition:width .22s ease,box-shadow .22s ease}.rail.open{width:var(--resolved-expanded-width)}.rail.overlay{box-shadow:var(--nav-overlay-shadow, 6px 0 18px rgba(0, 0, 0, .28))}ul{list-style:none;margin:0;padding:0}.items{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto}.menu-toggle,.item,.child{appearance:none;box-sizing:border-box;width:100%;margin:0;border:0;border-radius:0;color:inherit;background:transparent;font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.menu-toggle:hover,.item:hover,.child:hover{background-color:var(--resolved-hover-background)}.menu-toggle:focus-visible,.item:focus-visible,.child:focus-visible{outline:2px solid var(--resolved-focus-color);outline-offset:-2px}.menu-toggle,.item{display:flex;align-items:center;gap:16px;padding:0 18px;font-size:14px}.menu-toggle{flex:none;height:48px}.item{height:40px;color:var(--resolved-item-color);font-weight:400}.item.current{color:var(--resolved-color);font-weight:500}.item.highlighted:not(:hover){background-color:var(--resolved-current-background)}.icon{flex:none;display:inline-flex;width:20px;height:20px;--aup-icon-size: 20px}.label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .22s ease}.chevron{--aup-icon-size: 18px;flex:none;color:var(--resolved-chevron-color);opacity:0;transform:rotate(-90deg);transition:transform .22s ease,opacity .22s ease}.chevron.open{transform:none}.item.current .chevron{color:var(--resolved-current-chevron-color)}.rail.open .label,.rail.open .chevron{opacity:1}.children{overflow:hidden}.child{display:block;height:34px;line-height:34px;padding:0 16px 0 54px;overflow:hidden;text-overflow:ellipsis;color:var(--resolved-child-color);font-size:13px;font-weight:400}.child.current{color:var(--resolved-color);font-weight:500}.child.current:not(:hover){background-color:var(--resolved-current-background)}.nav-end{flex:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }], animations: [slideDownOnEnterAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15382
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SidePlaceNavigationComponent, selector: "aup-side-place-navigation", inputs: { expanded$: "expanded$", expanded: "expanded", collapsible: "collapsible", hoverExpandDelay: "hoverExpandDelay", persistKey: "persistKey", groupsStartOpen: "groupsStartOpen" }, host: { properties: { "class.expanded": "this.expanded" } }, queries: [{ propertyName: "navEndTemplate", first: true, predicate: ["navEndTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"tapOpen$.value && !expanded\" class=\"backdrop\" (click)=\"dismiss()\"></div>\n\n<nav class=\"rail\"\n [class.open]=\"open$.value\"\n [class.overlay]=\"overlay$.value\"\n (pointerdown)=\"onRailPointerDown($event)\"\n (keydown.escape)=\"dismiss()\"\n (pointerenter)=\"onRailEnter($event)\"\n (pointerleave)=\"onRailLeave()\">\n\n <button *ngIf=\"collapsible\" type=\"button\" class=\"menu-toggle\"\n [attr.aria-expanded]=\"expanded || tapOpen$.value\"\n (click)=\"toggleMenu()\">\n <span class=\"icon\"><aup-icon [icon]=\"expanded || tapOpen$.value ? 'mat:menu_open' : 'mat:menu'\"></aup-icon></span>\n <span class=\"label\">Menu</span>\n </button>\n\n <ul class=\"items\" [@.disabled]=\"animationsDisabled\">\n <li *ngFor=\"let item of navItems$.value; trackBy: trackByNavItem\">\n <!-- A group standing in for its hidden current child is the current item, not the page. -->\n <button type=\"button\" class=\"item\"\n [class.current]=\"item.current\"\n [class.highlighted]=\"item.highlighted\"\n [title]=\"item.face.text()\"\n [attr.aria-expanded]=\"item.group ? item.showChildren : null\"\n [attr.aria-controls]=\"item.group ? item.childListId : null\"\n [attr.aria-current]=\"item.highlighted ? (item.group ? 'true' : 'page') : null\"\n (click)=\"activate(item)\">\n <span class=\"icon\"><aup-icon *ngIf=\"item.face.icon()\" [icon]=\"item.face.icon()\"></aup-icon></span>\n <span class=\"label\">{{item.face.text()}}</span>\n <aup-icon *ngIf=\"item.group\" class=\"chevron\" [class.open]=\"item.showChildren\" icon=\"mat:expand_more\"></aup-icon>\n </button>\n\n <!-- Always present, so the header's aria-controls names a real element while it's closed. -->\n <div *ngIf=\"item.group\" [id]=\"item.childListId\">\n <ul *ngIf=\"item.showChildren\" class=\"children\" [@slideDownOnEnter]=\"childListAnimation\">\n <li *ngFor=\"let child of item.children; trackBy: trackByNavChild\">\n <button type=\"button\" class=\"child\"\n [class.current]=\"child.current\"\n [attr.aria-current]=\"child.current ? 'page' : null\"\n (click)=\"navigateTo(child.place)\">{{child.face.text()}}</button>\n </li>\n </ul>\n </div>\n </li>\n </ul>\n\n <div *ngIf=\"navEndTemplate\" class=\"nav-end\">\n <ng-container [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n </div>\n</nav>\n", styles: [":host{--resolved-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 232px);--resolved-background-color: var(--nav-background-color, #555);--resolved-color: var(--nav-color, #fff);--resolved-item-color: var(--nav-item-color, #eee);--resolved-child-color: var(--nav-child-color, #d0d0d0);--resolved-current-background: var(--nav-current-background, #3a3a3a);--resolved-hover-background: var(--nav-hover-background, #4c4c4c);--resolved-chevron-color: var(--nav-chevron-color, #bdbdbd);--resolved-current-chevron-color: var(--nav-current-chevron-color, #757575);--resolved-focus-color: var(--nav-focus-color, rgba(255, 255, 255, .6));display:block;position:relative;z-index:var(--nav-z-index, 100);flex:none;width:var(--resolved-width);transition:width .22s ease}:host.expanded{width:var(--resolved-expanded-width)}.backdrop{position:fixed;inset:0;background-color:var(--nav-backdrop-color, rgba(0, 0, 0, .32))}.rail{position:absolute;inset:0 auto 0 0;width:var(--resolved-width);display:flex;flex-direction:column;overflow:hidden;color:var(--resolved-color);background-color:var(--resolved-background-color);box-shadow:none;transition:width .22s ease,box-shadow .22s ease}.rail.open{width:var(--resolved-expanded-width)}.rail.overlay{box-shadow:var(--nav-overlay-shadow, 6px 0 18px rgba(0, 0, 0, .28))}ul{list-style:none;margin:0;padding:0}.items{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto}.menu-toggle,.item,.child{appearance:none;box-sizing:border-box;width:100%;margin:0;border:0;border-radius:0;color:inherit;background:transparent;font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.menu-toggle:hover,.item:hover,.child:hover{background-color:var(--resolved-hover-background)}.menu-toggle:focus-visible,.item:focus-visible,.child:focus-visible{outline:2px solid var(--resolved-focus-color);outline-offset:-2px}.menu-toggle,.item{display:flex;align-items:center;gap:16px;padding:0 18px;font-size:14px}.menu-toggle{flex:none;height:48px}.item{height:40px;color:var(--resolved-item-color);font-weight:400}.item.current{color:var(--resolved-color);font-weight:500}.item.highlighted:not(:hover){background-color:var(--resolved-current-background)}.icon{flex:none;display:inline-flex;width:20px;height:20px;--aup-icon-size: 20px}.label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .22s ease}.chevron{--aup-icon-size: 18px;flex:none;color:var(--resolved-chevron-color);opacity:0;transform:rotate(-90deg);transition:transform .22s ease,opacity .22s ease}.chevron.open{transform:none}.item.current .chevron{color:var(--resolved-current-chevron-color)}.rail.open .label,.rail.open .chevron{opacity:1}.children{overflow:hidden}.child{display:block;height:34px;line-height:34px;padding:0 16px 0 54px;overflow:hidden;text-overflow:ellipsis;color:var(--resolved-child-color);font-size:13px;font-weight:400}.child.current{color:var(--resolved-color);font-weight:500}.child.current:not(:hover){background-color:var(--resolved-current-background)}.nav-end{flex:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }], animations: [slideDownOnEnterAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15249
15383
|
}
|
|
15250
15384
|
__decorate([
|
|
15251
15385
|
Proxify(),
|
|
@@ -15261,7 +15395,7 @@ __decorate([
|
|
|
15261
15395
|
], SidePlaceNavigationComponent.prototype, "groupsStartOpen", null);
|
|
15262
15396
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SidePlaceNavigationComponent, decorators: [{
|
|
15263
15397
|
type: Component,
|
|
15264
|
-
args: [{ selector: 'aup-side-place-navigation', changeDetection: ChangeDetectionStrategy.OnPush, animations: [slideDownOnEnterAnimation], template: "<nav class=\"rail\"\n [class.open]=\"open$.value\"\n [class.overlay]=\"overlay$.value\"\n (pointerenter)=\"onRailEnter($event)\"\n (pointerleave)=\"onRailLeave()\">\n\n <button *ngIf=\"collapsible\" type=\"button\" class=\"menu-toggle\"\n [attr.aria-expanded]=\"expanded\"\n (click)=\"toggleMenu()\">\n <span class=\"icon\"><aup-icon [icon]=\"expanded ? 'mat:menu_open' : 'mat:menu'\"></aup-icon></span>\n <span class=\"label\">Menu</span>\n </button>\n\n <ul class=\"items\" [@.disabled]=\"animationsDisabled\">\n <li *ngFor=\"let item of navItems$.value; trackBy: trackByNavItem\">\n <!-- A group standing in for its hidden current child is the current item, not the page. -->\n <button type=\"button\" class=\"item\"\n [class.current]=\"item.current\"\n [class.highlighted]=\"item.highlighted\"\n [title]=\"item.face.text()\"\n [attr.aria-expanded]=\"item.group ? item.showChildren : null\"\n [attr.aria-controls]=\"item.group ? item.childListId : null\"\n [attr.aria-current]=\"item.highlighted ? (item.group ? 'true' : 'page') : null\"\n (click)=\"activate(item)\">\n <span class=\"icon\"><aup-icon *ngIf=\"item.face.icon()\" [icon]=\"item.face.icon()\"></aup-icon></span>\n <span class=\"label\">{{item.face.text()}}</span>\n <aup-icon *ngIf=\"item.group\" class=\"chevron\" [class.open]=\"item.showChildren\" icon=\"mat:expand_more\"></aup-icon>\n </button>\n\n <!-- Always present, so the header's aria-controls names a real element while it's closed. -->\n <div *ngIf=\"item.group\" [id]=\"item.childListId\">\n <ul *ngIf=\"item.showChildren\" class=\"children\" [@slideDownOnEnter]=\"childListAnimation\">\n <li *ngFor=\"let child of item.children; trackBy: trackByNavChild\">\n <button type=\"button\" class=\"child\"\n [class.current]=\"child.current\"\n [attr.aria-current]=\"child.current ? 'page' : null\"\n (click)=\"navigateTo(child.place)\">{{child.face.text()}}</button>\n </li>\n </ul>\n </div>\n </li>\n </ul>\n\n <div *ngIf=\"navEndTemplate\" class=\"nav-end\">\n <ng-container [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n </div>\n</nav>\n", styles: [":host{--resolved-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 232px);--resolved-background-color: var(--nav-background-color, #555);--resolved-color: var(--nav-color, #fff);--resolved-item-color: var(--nav-item-color, #eee);--resolved-child-color: var(--nav-child-color, #d0d0d0);--resolved-current-background: var(--nav-current-background, #3a3a3a);--resolved-hover-background: var(--nav-hover-background, #4c4c4c);--resolved-chevron-color: var(--nav-chevron-color, #bdbdbd);--resolved-current-chevron-color: var(--nav-current-chevron-color, #757575);--resolved-focus-color: var(--nav-focus-color, rgba(255, 255, 255, .6));display:block;position:relative;z-index:var(--nav-z-index, 100);flex:none;width:var(--resolved-width);transition:width .22s ease}:host.expanded{width:var(--resolved-expanded-width)}.rail{position:absolute;inset:0 auto 0 0;width:var(--resolved-width);display:flex;flex-direction:column;overflow:hidden;color:var(--resolved-color);background-color:var(--resolved-background-color);box-shadow:none;transition:width .22s ease,box-shadow .22s ease}.rail.open{width:var(--resolved-expanded-width)}.rail.overlay{box-shadow:var(--nav-overlay-shadow, 6px 0 18px rgba(0, 0, 0, .28))}ul{list-style:none;margin:0;padding:0}.items{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto}.menu-toggle,.item,.child{appearance:none;box-sizing:border-box;width:100%;margin:0;border:0;border-radius:0;color:inherit;background:transparent;font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.menu-toggle:hover,.item:hover,.child:hover{background-color:var(--resolved-hover-background)}.menu-toggle:focus-visible,.item:focus-visible,.child:focus-visible{outline:2px solid var(--resolved-focus-color);outline-offset:-2px}.menu-toggle,.item{display:flex;align-items:center;gap:16px;padding:0 18px;font-size:14px}.menu-toggle{flex:none;height:48px}.item{height:40px;color:var(--resolved-item-color);font-weight:400}.item.current{color:var(--resolved-color);font-weight:500}.item.highlighted:not(:hover){background-color:var(--resolved-current-background)}.icon{flex:none;display:inline-flex;width:20px;height:20px;--aup-icon-size: 20px}.label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .22s ease}.chevron{--aup-icon-size: 18px;flex:none;color:var(--resolved-chevron-color);opacity:0;transform:rotate(-90deg);transition:transform .22s ease,opacity .22s ease}.chevron.open{transform:none}.item.current .chevron{color:var(--resolved-current-chevron-color)}.rail.open .label,.rail.open .chevron{opacity:1}.children{overflow:hidden}.child{display:block;height:34px;line-height:34px;padding:0 16px 0 54px;overflow:hidden;text-overflow:ellipsis;color:var(--resolved-child-color);font-size:13px;font-weight:400}.child.current{color:var(--resolved-color);font-weight:500}.child.current:not(:hover){background-color:var(--resolved-current-background)}.nav-end{flex:none}\n"] }]
|
|
15398
|
+
args: [{ selector: 'aup-side-place-navigation', changeDetection: ChangeDetectionStrategy.OnPush, animations: [slideDownOnEnterAnimation], template: "<div *ngIf=\"tapOpen$.value && !expanded\" class=\"backdrop\" (click)=\"dismiss()\"></div>\n\n<nav class=\"rail\"\n [class.open]=\"open$.value\"\n [class.overlay]=\"overlay$.value\"\n (pointerdown)=\"onRailPointerDown($event)\"\n (keydown.escape)=\"dismiss()\"\n (pointerenter)=\"onRailEnter($event)\"\n (pointerleave)=\"onRailLeave()\">\n\n <button *ngIf=\"collapsible\" type=\"button\" class=\"menu-toggle\"\n [attr.aria-expanded]=\"expanded || tapOpen$.value\"\n (click)=\"toggleMenu()\">\n <span class=\"icon\"><aup-icon [icon]=\"expanded || tapOpen$.value ? 'mat:menu_open' : 'mat:menu'\"></aup-icon></span>\n <span class=\"label\">Menu</span>\n </button>\n\n <ul class=\"items\" [@.disabled]=\"animationsDisabled\">\n <li *ngFor=\"let item of navItems$.value; trackBy: trackByNavItem\">\n <!-- A group standing in for its hidden current child is the current item, not the page. -->\n <button type=\"button\" class=\"item\"\n [class.current]=\"item.current\"\n [class.highlighted]=\"item.highlighted\"\n [title]=\"item.face.text()\"\n [attr.aria-expanded]=\"item.group ? item.showChildren : null\"\n [attr.aria-controls]=\"item.group ? item.childListId : null\"\n [attr.aria-current]=\"item.highlighted ? (item.group ? 'true' : 'page') : null\"\n (click)=\"activate(item)\">\n <span class=\"icon\"><aup-icon *ngIf=\"item.face.icon()\" [icon]=\"item.face.icon()\"></aup-icon></span>\n <span class=\"label\">{{item.face.text()}}</span>\n <aup-icon *ngIf=\"item.group\" class=\"chevron\" [class.open]=\"item.showChildren\" icon=\"mat:expand_more\"></aup-icon>\n </button>\n\n <!-- Always present, so the header's aria-controls names a real element while it's closed. -->\n <div *ngIf=\"item.group\" [id]=\"item.childListId\">\n <ul *ngIf=\"item.showChildren\" class=\"children\" [@slideDownOnEnter]=\"childListAnimation\">\n <li *ngFor=\"let child of item.children; trackBy: trackByNavChild\">\n <button type=\"button\" class=\"child\"\n [class.current]=\"child.current\"\n [attr.aria-current]=\"child.current ? 'page' : null\"\n (click)=\"navigateTo(child.place)\">{{child.face.text()}}</button>\n </li>\n </ul>\n </div>\n </li>\n </ul>\n\n <div *ngIf=\"navEndTemplate\" class=\"nav-end\">\n <ng-container [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n </div>\n</nav>\n", styles: [":host{--resolved-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 232px);--resolved-background-color: var(--nav-background-color, #555);--resolved-color: var(--nav-color, #fff);--resolved-item-color: var(--nav-item-color, #eee);--resolved-child-color: var(--nav-child-color, #d0d0d0);--resolved-current-background: var(--nav-current-background, #3a3a3a);--resolved-hover-background: var(--nav-hover-background, #4c4c4c);--resolved-chevron-color: var(--nav-chevron-color, #bdbdbd);--resolved-current-chevron-color: var(--nav-current-chevron-color, #757575);--resolved-focus-color: var(--nav-focus-color, rgba(255, 255, 255, .6));display:block;position:relative;z-index:var(--nav-z-index, 100);flex:none;width:var(--resolved-width);transition:width .22s ease}:host.expanded{width:var(--resolved-expanded-width)}.backdrop{position:fixed;inset:0;background-color:var(--nav-backdrop-color, rgba(0, 0, 0, .32))}.rail{position:absolute;inset:0 auto 0 0;width:var(--resolved-width);display:flex;flex-direction:column;overflow:hidden;color:var(--resolved-color);background-color:var(--resolved-background-color);box-shadow:none;transition:width .22s ease,box-shadow .22s ease}.rail.open{width:var(--resolved-expanded-width)}.rail.overlay{box-shadow:var(--nav-overlay-shadow, 6px 0 18px rgba(0, 0, 0, .28))}ul{list-style:none;margin:0;padding:0}.items{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto}.menu-toggle,.item,.child{appearance:none;box-sizing:border-box;width:100%;margin:0;border:0;border-radius:0;color:inherit;background:transparent;font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.menu-toggle:hover,.item:hover,.child:hover{background-color:var(--resolved-hover-background)}.menu-toggle:focus-visible,.item:focus-visible,.child:focus-visible{outline:2px solid var(--resolved-focus-color);outline-offset:-2px}.menu-toggle,.item{display:flex;align-items:center;gap:16px;padding:0 18px;font-size:14px}.menu-toggle{flex:none;height:48px}.item{height:40px;color:var(--resolved-item-color);font-weight:400}.item.current{color:var(--resolved-color);font-weight:500}.item.highlighted:not(:hover){background-color:var(--resolved-current-background)}.icon{flex:none;display:inline-flex;width:20px;height:20px;--aup-icon-size: 20px}.label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .22s ease}.chevron{--aup-icon-size: 18px;flex:none;color:var(--resolved-chevron-color);opacity:0;transform:rotate(-90deg);transition:transform .22s ease,opacity .22s ease}.chevron.open{transform:none}.item.current .chevron{color:var(--resolved-current-chevron-color)}.rail.open .label,.rail.open .chevron{opacity:1}.children{overflow:hidden}.child{display:block;height:34px;line-height:34px;padding:0 16px 0 54px;overflow:hidden;text-overflow:ellipsis;color:var(--resolved-child-color);font-size:13px;font-weight:400}.child.current{color:var(--resolved-color);font-weight:500}.child.current:not(:hover){background-color:var(--resolved-current-background)}.nav-end{flex:none}\n"] }]
|
|
15265
15399
|
}], ctorParameters: function () { return [{ type: PlaceRouter }]; }, propDecorators: { expanded$: [{
|
|
15266
15400
|
type: Input
|
|
15267
15401
|
}], expanded: [{
|
|
@@ -15574,21 +15708,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
15574
15708
|
* @file Automatically generated by barrelsby.
|
|
15575
15709
|
*/
|
|
15576
15710
|
|
|
15577
|
-
|
|
15711
|
+
/**
|
|
15712
|
+
* Runs each activity in a modal surface of its own, opened for it and closed when it finishes. Escape
|
|
15713
|
+
* cancels the activity, and so does a click on the backdrop where the activity allows it. Activities
|
|
15714
|
+
* started from inside it stack in the same surface, as its container's own tabs. A subclass decides
|
|
15715
|
+
* which surface: a dialog, or a sheet from the foot of the screen.
|
|
15716
|
+
*/
|
|
15717
|
+
class HostedInteractionContext extends AbstractInteractionContext {
|
|
15578
15718
|
identifier;
|
|
15579
15719
|
api;
|
|
15580
|
-
dialogService;
|
|
15581
|
-
config;
|
|
15582
15720
|
garbage = new GarbageCollector();
|
|
15583
|
-
_currentActivityRef;
|
|
15584
15721
|
activityContainer;
|
|
15585
|
-
constructor(identifier, api
|
|
15722
|
+
constructor(identifier, api) {
|
|
15586
15723
|
super();
|
|
15587
15724
|
this.identifier = identifier;
|
|
15588
15725
|
this.api = api;
|
|
15589
|
-
this.dialogService = dialogService;
|
|
15590
|
-
this.config = config;
|
|
15591
|
-
assert$1.notNil(dialogService);
|
|
15592
15726
|
}
|
|
15593
15727
|
cancelActiveActivity() {
|
|
15594
15728
|
return this.activityContainer.cancelActiveActivity();
|
|
@@ -15606,63 +15740,54 @@ class DialogInteractionContext extends AbstractInteractionContext {
|
|
|
15606
15740
|
return !!this.activityContainer && this.activityContainer.isActive();
|
|
15607
15741
|
}
|
|
15608
15742
|
createAndLaunchActivity(activityType, data, options) {
|
|
15609
|
-
assert$1.isNil(this._currentActivityRef);
|
|
15610
15743
|
const enableCloseOnBackdropClick = Opts.get(options).getOptional('enableCloseOnBackdropClick', false);
|
|
15611
|
-
const
|
|
15612
|
-
|
|
15613
|
-
|
|
15614
|
-
disableClose: true,
|
|
15615
|
-
panelClass: 'dialog-interaction-context'
|
|
15616
|
-
}
|
|
15617
|
-
};
|
|
15618
|
-
const matDialogRef = this.dialogService.open(ActivityContainerComponent, config);
|
|
15619
|
-
// Everything below works on this dialog's own container, never the activityContainer field.
|
|
15620
|
-
// The field tracks the *current* dialog, and the next one can claim it while this one is still
|
|
15744
|
+
const host = this.openHost();
|
|
15745
|
+
// Everything below works on this surface's own container, never the activityContainer field.
|
|
15746
|
+
// The field tracks the *current* surface, and the next one can claim it while this one is still
|
|
15621
15747
|
// closing: MatDialog's exit animation (75ms) is shorter than its enter (150ms), so a dialog
|
|
15622
15748
|
// opened as this one closes sees this one's afterClosed land before its own afterOpened.
|
|
15623
|
-
const activityContainer = this.activityContainer =
|
|
15749
|
+
const activityContainer = this.activityContainer = host.activityContainer;
|
|
15624
15750
|
activityContainer.initialise(this.identifier, this.api);
|
|
15625
15751
|
const activityResult = activityContainer.startActivity(activityType, data);
|
|
15626
15752
|
// Tear the overlay down the moment the activity completes — decoupled from route sync. The
|
|
15627
15753
|
// route sync still runs (via activityResult / waitActivitiesSynchronised) but can wedge under
|
|
15628
15754
|
// some browser/extension combinations; gating close() on it would leave a stranded backdrop.
|
|
15629
|
-
activityContainer.onceInactive(() =>
|
|
15755
|
+
activityContainer.onceInactive(() => host.close());
|
|
15630
15756
|
// Backstop: also close when the (route-synced) result settles, in case the inactive signal is
|
|
15631
|
-
// ever missed.
|
|
15757
|
+
// ever missed. close() is idempotent, so a second call is a harmless no-op.
|
|
15632
15758
|
// then(close, close), not finally(close): finally's promise re-rejects on a cancel and nothing
|
|
15633
15759
|
// holds it. zone.js 0.13 happens not to report that, but native promises (zoneless) would.
|
|
15634
|
-
const close = () =>
|
|
15760
|
+
const close = () => host.close();
|
|
15635
15761
|
activityResult.then(close, close);
|
|
15636
|
-
//
|
|
15637
|
-
//
|
|
15638
|
-
// activity.
|
|
15762
|
+
// The surface can also close without the activity finishing, by a click on its backdrop. Then
|
|
15763
|
+
// the activity is cancelled, here or in afterClosed below.
|
|
15639
15764
|
if (enableCloseOnBackdropClick) {
|
|
15640
|
-
|
|
15765
|
+
host.backdropClick().subscribe(() => {
|
|
15641
15766
|
if (this.canClose(activityContainer, options)) {
|
|
15642
15767
|
activityContainer.cancelActiveActivity();
|
|
15643
15768
|
}
|
|
15644
15769
|
});
|
|
15645
15770
|
}
|
|
15646
|
-
|
|
15771
|
+
host.keydownEvents().subscribe(event => {
|
|
15647
15772
|
if (event.key === 'Escape') {
|
|
15648
15773
|
if (this.canClose(activityContainer, options)) {
|
|
15649
15774
|
activityContainer.cancelActiveActivity();
|
|
15650
15775
|
}
|
|
15651
15776
|
}
|
|
15652
15777
|
});
|
|
15653
|
-
|
|
15778
|
+
host.afterClosed().subscribe(() => {
|
|
15654
15779
|
if (activityContainer.isActive()) {
|
|
15655
15780
|
activityContainer.cancelActiveActivity();
|
|
15656
15781
|
}
|
|
15657
15782
|
// Release the field only if it's still ours: nulling a successor's would orphan the live
|
|
15658
|
-
//
|
|
15783
|
+
// surface (isActive() false, its afterOpened and Escape handlers reading null).
|
|
15659
15784
|
if (this.activityContainer === activityContainer) {
|
|
15660
15785
|
this.activityContainer = null;
|
|
15661
15786
|
}
|
|
15662
15787
|
});
|
|
15663
|
-
|
|
15664
|
-
|
|
15665
|
-
|
|
15788
|
+
host.updateSize();
|
|
15789
|
+
host.afterOpened().subscribe(() => {
|
|
15790
|
+
host.updateSize();
|
|
15666
15791
|
activityContainer.notifyReady(true);
|
|
15667
15792
|
});
|
|
15668
15793
|
return activityResult;
|
|
@@ -15673,6 +15798,37 @@ class DialogInteractionContext extends AbstractInteractionContext {
|
|
|
15673
15798
|
}
|
|
15674
15799
|
}
|
|
15675
15800
|
|
|
15801
|
+
/** Runs each activity in a dialog of its own, centred over the page. */
|
|
15802
|
+
class DialogInteractionContext extends HostedInteractionContext {
|
|
15803
|
+
dialogService;
|
|
15804
|
+
config;
|
|
15805
|
+
constructor(identifier, api, dialogService, config) {
|
|
15806
|
+
super(identifier, api);
|
|
15807
|
+
this.dialogService = dialogService;
|
|
15808
|
+
this.config = config;
|
|
15809
|
+
assert$1.notNil(dialogService);
|
|
15810
|
+
}
|
|
15811
|
+
openHost() {
|
|
15812
|
+
const config = {
|
|
15813
|
+
...this.config,
|
|
15814
|
+
...{
|
|
15815
|
+
disableClose: true,
|
|
15816
|
+
panelClass: 'dialog-interaction-context'
|
|
15817
|
+
}
|
|
15818
|
+
};
|
|
15819
|
+
const dialogRef = this.dialogService.open(ActivityContainerComponent, config);
|
|
15820
|
+
return {
|
|
15821
|
+
activityContainer: dialogRef.componentInstance,
|
|
15822
|
+
close: () => dialogRef.close(),
|
|
15823
|
+
afterOpened: () => dialogRef.afterOpened(),
|
|
15824
|
+
afterClosed: () => dialogRef.afterClosed(),
|
|
15825
|
+
backdropClick: () => dialogRef.backdropClick(),
|
|
15826
|
+
keydownEvents: () => dialogRef.keydownEvents(),
|
|
15827
|
+
updateSize: () => dialogRef.updateSize(),
|
|
15828
|
+
};
|
|
15829
|
+
}
|
|
15830
|
+
}
|
|
15831
|
+
|
|
15676
15832
|
/* eslint-disable @typescript-eslint/no-explicit-any -- factory creates contexts for arbitrary activity shapes */
|
|
15677
15833
|
const DIALOG_INTERACTION_SERVICE_DEFAULTS = new InjectionToken('DIALOG_INTERACTION_SERVICE_DEFAULTS');
|
|
15678
15834
|
class DialogInteractionContextFactory extends ModalInteractionContextFactory {
|
|
@@ -15723,6 +15879,74 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
15723
15879
|
args: [MAT_DIALOG_DEFAULT_OPTIONS]
|
|
15724
15880
|
}] }]; } });
|
|
15725
15881
|
|
|
15882
|
+
/**
|
|
15883
|
+
* Runs each activity in a sheet that rises from the foot of the screen, as a phone shows a choice. The
|
|
15884
|
+
* sheet is as tall as its activity, up to most of the screen. An activity started from inside one
|
|
15885
|
+
* slides in over it in the same sheet, and its own Back returns to the one before.
|
|
15886
|
+
*/
|
|
15887
|
+
class BottomSheetInteractionContext extends HostedInteractionContext {
|
|
15888
|
+
bottomSheet;
|
|
15889
|
+
config;
|
|
15890
|
+
constructor(identifier, api, bottomSheet, config) {
|
|
15891
|
+
super(identifier, api);
|
|
15892
|
+
this.bottomSheet = bottomSheet;
|
|
15893
|
+
this.config = config;
|
|
15894
|
+
assert$1.notNil(bottomSheet);
|
|
15895
|
+
}
|
|
15896
|
+
openHost() {
|
|
15897
|
+
const config = {
|
|
15898
|
+
...this.config,
|
|
15899
|
+
disableClose: true,
|
|
15900
|
+
panelClass: 'bottom-sheet-interaction-context'
|
|
15901
|
+
};
|
|
15902
|
+
const sheetRef = this.bottomSheet.open(ActivityContainerComponent, config);
|
|
15903
|
+
const activityContainer = sheetRef.instance;
|
|
15904
|
+
// A dialog's container fills the dialog; a sheet's takes its height from the activity in it.
|
|
15905
|
+
activityContainer.dynamicHeight = true;
|
|
15906
|
+
return {
|
|
15907
|
+
activityContainer,
|
|
15908
|
+
close: () => sheetRef.dismiss(),
|
|
15909
|
+
afterOpened: () => sheetRef.afterOpened(),
|
|
15910
|
+
afterClosed: () => sheetRef.afterDismissed(),
|
|
15911
|
+
backdropClick: () => sheetRef.backdropClick(),
|
|
15912
|
+
keydownEvents: () => sheetRef.keydownEvents(),
|
|
15913
|
+
updateSize: () => undefined,
|
|
15914
|
+
};
|
|
15915
|
+
}
|
|
15916
|
+
}
|
|
15917
|
+
|
|
15918
|
+
/**
|
|
15919
|
+
* Creates contexts that run their activities in a sheet from the foot of the screen. Pass it to
|
|
15920
|
+
* `InteractionService.createModalInteractionContextDisposedWith` for a context that uses sheets while
|
|
15921
|
+
* the app's own modal contexts stay dialogs, or provide it as the `ModalInteractionContextFactory` for
|
|
15922
|
+
* every modal context to use them.
|
|
15923
|
+
*/
|
|
15924
|
+
class BottomSheetInteractionContextFactory extends ModalInteractionContextFactory {
|
|
15925
|
+
bottomSheet;
|
|
15926
|
+
constructor(bottomSheet) {
|
|
15927
|
+
super();
|
|
15928
|
+
this.bottomSheet = bottomSheet;
|
|
15929
|
+
}
|
|
15930
|
+
createInteractionContext(identifier, api) {
|
|
15931
|
+
return new BottomSheetInteractionContext(identifier, api, this.bottomSheet, {
|
|
15932
|
+
autoFocus: false,
|
|
15933
|
+
hasBackdrop: true,
|
|
15934
|
+
closeOnNavigation: false,
|
|
15935
|
+
// As the dialog context does: focus restored into a background CDK still marks aria-hidden is
|
|
15936
|
+
// blocked and warned about by Chrome.
|
|
15937
|
+
restoreFocus: false,
|
|
15938
|
+
});
|
|
15939
|
+
}
|
|
15940
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: BottomSheetInteractionContextFactory, deps: [{ token: i1$8.MatBottomSheet }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15941
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: BottomSheetInteractionContextFactory, providedIn: 'root' });
|
|
15942
|
+
}
|
|
15943
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: BottomSheetInteractionContextFactory, decorators: [{
|
|
15944
|
+
type: Injectable,
|
|
15945
|
+
args: [{
|
|
15946
|
+
providedIn: 'root'
|
|
15947
|
+
}]
|
|
15948
|
+
}], ctorParameters: function () { return [{ type: i1$8.MatBottomSheet }]; } });
|
|
15949
|
+
|
|
15726
15950
|
/**
|
|
15727
15951
|
* @file Automatically generated by barrelsby.
|
|
15728
15952
|
*/
|
|
@@ -16346,5 +16570,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
16346
16570
|
* Generated bundle index. Do not edit.
|
|
16347
16571
|
*/
|
|
16348
16572
|
|
|
16349
|
-
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_OUT_OF_SCOPE_PLACE_NOTICE_COMPONENT, AUP_PLACE_CONFIG, AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractCellRenderer, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityCancellation, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AupTooltipDirective, AutocompleteInputComponent, Bounds, BusyOverlayComponent, ButtonRendererComponent, CELL_RENDERER_PORTAL, CardContainerComponent, CellFooterPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnManager, ColumnModel, ColumnOrderManager, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, Confirm, ConfirmRendererComponent, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DensityDirective, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FOOTER_CELL_RENDERER_PORTAL, FileDownloadComponent, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, FooterRowCellsBuilder, FooterRowModel, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, INTERACTION_CONTEXT, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextProvider, InteractionContextTriggerForDirective, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadableComponent, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, OutOfScopeNoticeComponent, POPUP_CONTAINER, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, ParameterSanitiser, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, PlaceScope, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, QuietRejections, QuietRejectionsErrorHandler, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, ResizeObserverDirective, RouteId, ScrollContainerComponent, SearchInputComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectOverlayOriginDirective, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SidePlaceNavigationComponent, SlideDownInteractionContextComponent, StringInputActivity, StringInputComponent, SubFormListColumn, SubFormListColumns, SubFormListComponent, SubFormListEmptyDirective, SubFormListFooterDirective, SubFormListHeaderDirective, SubFormRowActionsDirective, SubFormRowDirective, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableActionColumnComponent, TableBodyComponent, TableCellComponent, TableComponent, TableCustomMoreMenuComponent, TableCustomMoreMenuPopupComponent, TableFilterModel, TableFooterRow, TableHeaderCellComponent, TableModel, TableRowAttributesDirective, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, Track, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSegment, VisitSegmentSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, collapseOrphanSeparators, getPlaceDefinition, leftRightPlaceAnimation, markdownPillExtension, provideQuietRejections, setPlaceDefinition, slideDownAndRightOnEnterAnimation, slideDownOnEnterAnimation, slideDownWhenOpenAnimation, slideRightOnEnterAnimation, treeNodeDecorator };
|
|
16573
|
+
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_OUT_OF_SCOPE_PLACE_NOTICE_COMPONENT, AUP_PLACE_CONFIG, AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractCellRenderer, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityCancellation, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AupTooltipDirective, AutocompleteInputComponent, BottomSheetInteractionContext, BottomSheetInteractionContextFactory, Bounds, BusyOverlayComponent, ButtonRendererComponent, CELL_RENDERER_PORTAL, CardContainerComponent, CellFooterPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnManager, ColumnModel, ColumnOrderManager, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, Confirm, ConfirmRendererComponent, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DensityDirective, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FOOTER_CELL_RENDERER_PORTAL, FileDownloadComponent, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, FooterRowCellsBuilder, FooterRowModel, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, HostedInteractionContext, INTERACTION_CONTEXT, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextProvider, InteractionContextTriggerForDirective, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadableComponent, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, OutOfScopeNoticeComponent, POPUP_CONTAINER, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, ParameterSanitiser, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, PlaceScope, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, QuietRejections, QuietRejectionsErrorHandler, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, ResizeObserverDirective, RouteId, ScrollContainerComponent, SearchInputComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectOverlayOriginDirective, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SidePlaceNavigationComponent, SlideDownInteractionContextComponent, StringInputActivity, StringInputComponent, SubFormListColumn, SubFormListColumns, SubFormListComponent, SubFormListEmptyDirective, SubFormListFooterDirective, SubFormListHeaderDirective, SubFormRowActionsDirective, SubFormRowDirective, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableActionColumnComponent, TableBodyComponent, TableCellComponent, TableComponent, TableCustomMoreMenuComponent, TableCustomMoreMenuPopupComponent, TableFilterModel, TableFooterRow, TableHeaderCellComponent, TableModel, TableRowAttributesDirective, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, Track, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSegment, VisitSegmentSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, collapseOrphanSeparators, getPlaceDefinition, leftRightPlaceAnimation, markdownPillExtension, provideQuietRejections, setPlaceDefinition, slideDownAndRightOnEnterAnimation, slideDownOnEnterAnimation, slideDownWhenOpenAnimation, slideRightOnEnterAnimation, treeNodeDecorator };
|
|
16350
16574
|
//# sourceMappingURL=coolon-angular-ui-powerups.mjs.map
|