@coolon/angular-ui-powerups 16.1.0-alpha.323 → 16.1.0-alpha.325
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/esm2022/lib/components/cards/card-container/card-container.component.mjs +1 -1
- package/esm2022/lib/components/commands/button-renderer/button-renderer.component.mjs +3 -3
- package/esm2022/lib/components/commands/command/command.component.mjs +1 -1
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +1 -1
- package/esm2022/lib/components/forms/search-input/search-input.component.mjs +1 -1
- package/esm2022/lib/components/tables/paginator/paginator.component.mjs +1 -1
- package/esm2022/lib/directives/command.directive.mjs +17 -26
- package/esm2022/lib/interaction/activity-ref.mjs +14 -1
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +9 -1
- package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +2 -1
- package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +1 -1
- package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +1 -1
- package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +9 -1
- package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +1 -1
- package/esm2022/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.mjs +2 -2
- package/fesm2022/coolon-angular-ui-powerups.mjs +89 -68
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/directives/command.directive.d.ts +8 -10
- package/lib/interaction/activity-ref.d.ts +9 -0
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +6 -0
- package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +6 -0
- package/package.json +2 -2
|
@@ -3,9 +3,9 @@ import * as i1$1 from '@angular/common';
|
|
|
3
3
|
import { DOCUMENT, CommonModule, Location } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
5
|
import { inject, ViewContainerRef, Directive, ElementRef, Inject, Host, Optional, Input, HostListener, InjectionToken, ChangeDetectorRef, NgZone, Injectable, Pipe, NgModule, Component, ContentChild, HostBinding, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, ViewChildren, EventEmitter, Output, Self, forwardRef, Injector, isDevMode, ContentChildren, ComponentRef, PLATFORM_ID, SkipSelf, runInInjectionContext, ErrorHandler, ENVIRONMENT_INITIALIZER } from '@angular/core';
|
|
6
|
-
import * as i2$
|
|
6
|
+
import * as i2$4 from '@angular/forms';
|
|
7
7
|
import { FormsModule } from '@angular/forms';
|
|
8
|
-
import * as i4 from '@angular/material/form-field';
|
|
8
|
+
import * as i4$1 from '@angular/material/form-field';
|
|
9
9
|
import { MatFormFieldModule, MAT_FORM_FIELD } from '@angular/material/form-field';
|
|
10
10
|
import * as i3$1 from '@angular/material/input';
|
|
11
11
|
import { MatInputModule, MatInput } from '@angular/material/input';
|
|
@@ -14,7 +14,7 @@ import { MatSelectModule, MAT_SELECT_CONFIG, MatSelect } from '@angular/material
|
|
|
14
14
|
import * as i3$2 from '@angular/material/tabs';
|
|
15
15
|
import { MatTabsModule, MAT_TABS_CONFIG } from '@angular/material/tabs';
|
|
16
16
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
17
|
-
import * as i2$
|
|
17
|
+
import * as i2$6 from '@angular/cdk/drag-drop';
|
|
18
18
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
19
19
|
import * as i1$4 from '@angular/cdk/portal';
|
|
20
20
|
import { ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';
|
|
@@ -24,23 +24,23 @@ import * as i8 from '@angular/material/autocomplete';
|
|
|
24
24
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
25
25
|
import * as i2 from '@angular/material/button';
|
|
26
26
|
import { MatButtonModule } from '@angular/material/button';
|
|
27
|
-
import * as i2$
|
|
27
|
+
import * as i2$5 from '@angular/material/checkbox';
|
|
28
28
|
import { MAT_CHECKBOX_DEFAULT_OPTIONS, MatCheckboxModule } from '@angular/material/checkbox';
|
|
29
|
-
import * as i2$
|
|
29
|
+
import * as i2$3 from '@angular/material/divider';
|
|
30
30
|
import { MatDividerModule } from '@angular/material/divider';
|
|
31
|
-
import * as i2$
|
|
31
|
+
import * as i2$2 from '@angular/material/icon';
|
|
32
32
|
import { MatIconModule } from '@angular/material/icon';
|
|
33
|
-
import * as
|
|
33
|
+
import * as i4 from '@angular/material/menu';
|
|
34
34
|
import { MatMenu, MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
|
|
35
|
-
import * as i2$
|
|
35
|
+
import * as i2$7 from '@angular/material/progress-bar';
|
|
36
36
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
37
|
-
import * as i2$
|
|
37
|
+
import * as i2$1 from '@angular/material/progress-spinner';
|
|
38
38
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
39
|
-
import * as i2$
|
|
39
|
+
import * as i2$8 from '@angular/material/table';
|
|
40
40
|
import { MatTableModule } from '@angular/material/table';
|
|
41
41
|
import * as i3 from '@angular/material/tooltip';
|
|
42
42
|
import { MatTooltip, MatTooltipModule } from '@angular/material/tooltip';
|
|
43
|
-
import * as i4$
|
|
43
|
+
import * as i4$2 from 'ng-table-virtual-scroll';
|
|
44
44
|
import { TableVirtualScrollDataSource, TableVirtualScrollModule } from 'ng-table-virtual-scroll';
|
|
45
45
|
import * as i1$3 from '@coolon/pectin';
|
|
46
46
|
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, proxify, ValueModel, Proxify, Logger, StoreInValueModel, Command, MutableListModel, StoreInListModel, ListModel, Disposable, Trace, DelegatingListModel, MutableValueModel, DelegateToValueModel, FocusManager, EventListenerList, Guard, DelegatingFormListModel, Binding, DebugContext, DelegateToListModel, DelegatingFormValueModel, Rejection, Functions, PageController, SelectionModel, CanProxy, MultipleSelectionModel, WatchList, ProxyRegistry, DependsOnOptions, LoadingStateTracker, Loadable, HasValue, DelegatingCommand, ComputedListModel, Deferred, ReducingValueModel, AndValueModel, SingleSelectionModel, DirtyTrackingForm } from '@coolon/pectin';
|
|
@@ -172,9 +172,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
172
172
|
* 1. A click runs the command, with [commandParameter] for a UnaryCommand.
|
|
173
173
|
* 2. The element is disabled while the command is, Material buttons and menu items included.
|
|
174
174
|
* 3. The element is hidden while the command is invisible, as `aup-command` hides itself, so a
|
|
175
|
-
* `visibleWhile` gate hides the element without an `*ngIf` of its own.
|
|
176
|
-
*
|
|
177
|
-
*
|
|
175
|
+
* `visibleWhile` gate hides the element without an `*ngIf` of its own. It is disabled while hidden
|
|
176
|
+
* too, so the keyboard cannot reach it either: Material's menu moves the arrow keys and type-ahead
|
|
177
|
+
* past disabled items, but not past hidden ones.
|
|
178
|
+
* 4. A click is kept from the element's ancestors, except inside a menu, which closes on it.
|
|
178
179
|
*/
|
|
179
180
|
class CommandDirective extends GarbageCollector {
|
|
180
181
|
elementRef;
|
|
@@ -185,7 +186,6 @@ class CommandDirective extends GarbageCollector {
|
|
|
185
186
|
/** The element's own inline display, put back when the command shows again. */
|
|
186
187
|
displayWhenVisible;
|
|
187
188
|
matControl;
|
|
188
|
-
isInPopupMenu;
|
|
189
189
|
set pectinCommand(command) {
|
|
190
190
|
this._command = command;
|
|
191
191
|
this._commandEnabled.setDelegate(command ? command.enabled$ : null);
|
|
@@ -204,20 +204,13 @@ class CommandDirective extends GarbageCollector {
|
|
|
204
204
|
return this._commandParameter;
|
|
205
205
|
}
|
|
206
206
|
preventDefault = true;
|
|
207
|
-
|
|
208
|
-
hideWhenInvisible = true;
|
|
209
|
-
constructor(elementRef, changeDetector, matButton, matMenuItem, matMenu) {
|
|
207
|
+
constructor(elementRef, changeDetector, matButton, matMenuItem) {
|
|
210
208
|
super();
|
|
211
209
|
this.elementRef = elementRef;
|
|
212
210
|
this.changeDetector = changeDetector;
|
|
213
211
|
// Material buttons and menu items don't respond to the disabled binding so we
|
|
214
212
|
// need to inject them from our host element and handle them manually.
|
|
215
213
|
this.matControl = matButton || matMenuItem;
|
|
216
|
-
// A menu closes when an item's click bubbles up to it. An item projected into a menu that another
|
|
217
|
-
// component renders is declared outside that menu, so the menu cannot be injected from it, and the
|
|
218
|
-
// click used to be stopped, leaving the menu open. The item itself is always injectable, and a menu
|
|
219
|
-
// item only ever sits in a menu.
|
|
220
|
-
this.isInPopupMenu = !!matMenu || !!matMenuItem;
|
|
221
214
|
}
|
|
222
215
|
ngOnInit() {
|
|
223
216
|
assert.notNil(this.pectinCommand);
|
|
@@ -244,7 +237,7 @@ class CommandDirective extends GarbageCollector {
|
|
|
244
237
|
*/
|
|
245
238
|
updateVisibleState(visible) {
|
|
246
239
|
const style = this.elementRef.nativeElement.style;
|
|
247
|
-
if (visible
|
|
240
|
+
if (visible) {
|
|
248
241
|
if (this.displayWhenVisible !== undefined) {
|
|
249
242
|
style.display = this.displayWhenVisible;
|
|
250
243
|
this.displayWhenVisible = undefined;
|
|
@@ -256,8 +249,8 @@ class CommandDirective extends GarbageCollector {
|
|
|
256
249
|
}
|
|
257
250
|
}
|
|
258
251
|
ngAfterViewInit() {
|
|
259
|
-
const { when } = Dsl.disposeWith(this);
|
|
260
|
-
when(this._commandEnabled).changes(enabled => this.updateEnabledState(enabled), {
|
|
252
|
+
const { when, valueOf } = Dsl.disposeWith(this);
|
|
253
|
+
when(valueOf.all(this._commandEnabled, this._commandVisible).areTruthy()).changes(enabled => this.updateEnabledState(enabled), {
|
|
261
254
|
initialValue: 'triggerChange'
|
|
262
255
|
});
|
|
263
256
|
}
|
|
@@ -299,9 +292,11 @@ class CommandDirective extends GarbageCollector {
|
|
|
299
292
|
this.dispose();
|
|
300
293
|
}
|
|
301
294
|
notifyClick($event) {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
295
|
+
// A menu closes when a click inside it bubbles up to it, so a click in a menu is left to bubble.
|
|
296
|
+
// The menu is found at click time by its role. A menu can render items that another component
|
|
297
|
+
// declared, and those cannot inject the menu. Nor does a menu item's own class say it is in a
|
|
298
|
+
// menu: the click used to bubble from a menu item in a plain overlay.
|
|
299
|
+
if (!this.elementRef.nativeElement.closest('[role="menu"]')) {
|
|
305
300
|
$event.preventDefault();
|
|
306
301
|
$event.stopPropagation();
|
|
307
302
|
}
|
|
@@ -317,8 +312,8 @@ class CommandDirective extends GarbageCollector {
|
|
|
317
312
|
console.warn('disabled command clicked, ignoring.');
|
|
318
313
|
}
|
|
319
314
|
}
|
|
320
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CommandDirective, deps: [{ token: ElementRef }, { token: i0.ChangeDetectorRef }, { token: i2.MatButton, host: true, optional: true }, { token:
|
|
321
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: CommandDirective, selector: "[pectinCommand]", inputs: { pectinCommand: "pectinCommand", commandParameter: "commandParameter", preventDefault: "preventDefault"
|
|
315
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CommandDirective, deps: [{ token: ElementRef }, { token: i0.ChangeDetectorRef }, { token: i2.MatButton, host: true, optional: true }, { token: i4.MatMenuItem, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
316
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: CommandDirective, selector: "[pectinCommand]", inputs: { pectinCommand: "pectinCommand", commandParameter: "commandParameter", preventDefault: "preventDefault" }, host: { listeners: { "click": "notifyClick($event)" } }, usesInheritance: true, ngImport: i0 });
|
|
322
317
|
}
|
|
323
318
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CommandDirective, decorators: [{
|
|
324
319
|
type: Directive,
|
|
@@ -333,20 +328,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
333
328
|
type: Host
|
|
334
329
|
}, {
|
|
335
330
|
type: Optional
|
|
336
|
-
}] }, { type:
|
|
331
|
+
}] }, { type: i4.MatMenuItem, decorators: [{
|
|
337
332
|
type: Host
|
|
338
333
|
}, {
|
|
339
334
|
type: Optional
|
|
340
|
-
}] }, { type: i2$1.MatMenu, decorators: [{
|
|
341
|
-
type: Optional
|
|
342
335
|
}] }]; }, propDecorators: { pectinCommand: [{
|
|
343
336
|
type: Input
|
|
344
337
|
}], commandParameter: [{
|
|
345
338
|
type: Input
|
|
346
339
|
}], preventDefault: [{
|
|
347
340
|
type: Input
|
|
348
|
-
}], hideWhenInvisible: [{
|
|
349
|
-
type: Input
|
|
350
341
|
}], notifyClick: [{
|
|
351
342
|
type: HostListener,
|
|
352
343
|
args: ['click', ['$event']]
|
|
@@ -914,7 +905,7 @@ class BusyOverlayComponent extends GarbageCollector {
|
|
|
914
905
|
get busy() { return this.#busy_accessor_storage; }
|
|
915
906
|
set busy(value) { this.#busy_accessor_storage = value; }
|
|
916
907
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: BusyOverlayComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
917
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: BusyOverlayComponent, selector: "aup-busy-overlay", inputs: { busy$: "busy$", busy: "busy" }, usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n<div class=\"busy-overlay-backdrop\" *ngIf=\"busy$.value\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"52\"></mat-progress-spinner>\n</div>\n", styles: [":host{position:relative;display:flex;flex-direction:column;align-items:stretch}div.busy-overlay-backdrop{z-index:var(--aup-busy-overlay-z-index, 10);position:absolute;background-color:#0003;inset:0;display:grid;grid-template-columns:auto;grid-template-rows:auto;place-content:center}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$
|
|
908
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: BusyOverlayComponent, selector: "aup-busy-overlay", inputs: { busy$: "busy$", busy: "busy" }, usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n<div class=\"busy-overlay-backdrop\" *ngIf=\"busy$.value\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"52\"></mat-progress-spinner>\n</div>\n", styles: [":host{position:relative;display:flex;flex-direction:column;align-items:stretch}div.busy-overlay-backdrop{z-index:var(--aup-busy-overlay-z-index, 10);position:absolute;background-color:#0003;inset:0;display:grid;grid-template-columns:auto;grid-template-rows:auto;place-content:center}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
|
|
918
909
|
}
|
|
919
910
|
__decorate([
|
|
920
911
|
Proxify(),
|
|
@@ -1181,7 +1172,7 @@ class IconComponent {
|
|
|
1181
1172
|
: `Unknown icon prefix "${this.prefix}:", ${expected}`;
|
|
1182
1173
|
}
|
|
1183
1174
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1184
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: IconComponent, selector: "aup-icon", inputs: { icon: "icon" }, host: { properties: { "attr.icon": "this.icon" }, classAttribute: "mat-icon" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"prefix\">\n\n <mat-icon *ngSwitchCase=\"iconPrefix.SVG\"\n [svgIcon]=\"suffix\"\n class=\"svgIcon\">\n </mat-icon>\n\n <mat-icon *ngSwitchCase=\"iconPrefix.MATERIAL\">\n {{suffix}}\n </mat-icon>\n\n <div *ngSwitchCase=\"iconPrefix.FONT_AWESOME\" class=\"faIconWrapper\">\n <i class=\"fa-solid\" [class]=\"faIcon\"></i>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]=\"errorMessage\">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n", styles: [":host{display:inline-flex;--resolved-size: var(--aup-icon-size, 24px);width:var(--resolved-size)!important;min-width:var(--resolved-size)!important;height:var(--resolved-size)!important;min-height:var(--resolved-size)!important}:host fa-icon{vertical-align:middle}:host .faIconWrapper{display:flex;flex-direction:row;align-items:center;justify-content:center;width:var(--resolved-size)!important;height:var(--resolved-size)!important}:host .svgIcon{width:var(--resolved-size)!important;height:var(--resolved-size)!important}:host :host(.mat-chip-remove){--aup-icon-size: 18px}:host mat-icon{font-size:var(--resolved-size)!important;width:var(--resolved-size)!important;height:var(--resolved-size)!important;margin-right:0!important}\n"], dependencies: [{ 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$
|
|
1175
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: IconComponent, selector: "aup-icon", inputs: { icon: "icon" }, host: { properties: { "attr.icon": "this.icon" }, classAttribute: "mat-icon" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"prefix\">\n\n <mat-icon *ngSwitchCase=\"iconPrefix.SVG\"\n [svgIcon]=\"suffix\"\n class=\"svgIcon\">\n </mat-icon>\n\n <mat-icon *ngSwitchCase=\"iconPrefix.MATERIAL\">\n {{suffix}}\n </mat-icon>\n\n <div *ngSwitchCase=\"iconPrefix.FONT_AWESOME\" class=\"faIconWrapper\">\n <i class=\"fa-solid\" [class]=\"faIcon\"></i>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]=\"errorMessage\">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n", styles: [":host{display:inline-flex;--resolved-size: var(--aup-icon-size, 24px);width:var(--resolved-size)!important;min-width:var(--resolved-size)!important;height:var(--resolved-size)!important;min-height:var(--resolved-size)!important}:host fa-icon{vertical-align:middle}:host .faIconWrapper{display:flex;flex-direction:row;align-items:center;justify-content:center;width:var(--resolved-size)!important;height:var(--resolved-size)!important}:host .svgIcon{width:var(--resolved-size)!important;height:var(--resolved-size)!important}:host :host(.mat-chip-remove){--aup-icon-size: 18px}:host mat-icon{font-size:var(--resolved-size)!important;width:var(--resolved-size)!important;height:var(--resolved-size)!important;margin-right:0!important}\n"], dependencies: [{ 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$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1185
1176
|
}
|
|
1186
1177
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: IconComponent, decorators: [{
|
|
1187
1178
|
type: Component,
|
|
@@ -1388,7 +1379,7 @@ class CardContainerComponent extends AbstractCardContainerComponent {
|
|
|
1388
1379
|
}
|
|
1389
1380
|
}
|
|
1390
1381
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CardContainerComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1391
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CardContainerComponent, selector: "aup-card-container", inputs: { columnCount: "columnCount", enableScroll: "enableScroll" }, host: { properties: { "class.auto-columns": "this.isAutoColumns", "class.single-column": "this.isSingleColumn" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"header-container\">\n <ng-content select=\"[card-container-header], [slot=header]\"></ng-content>\n</div>\n\n<ng-template #content>\n <div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.visible$.value && addCardCommand.enabled$.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"hasFace$.value\" [faces]=\"_addCardFaces$.value\"/>\n <aup-icon *ngIf=\"!hasFace$.value\" icon=\"mat:add\"/>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n </div>\n</ng-template>\n\n<div class=\"no-scroll-container\" *ngIf=\"!enableScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n\n<aup-scroll-container *ngIf=\"enableScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</aup-scroll-container>\n\n<div class=\"footer-container\">\n <ng-content select=\"[card-container-footer], [slot=footer]\"></ng-content>\n</div>\n\n", styles: [":host{--resolved-card-gap: var(--card-gap, 16px);--resolved-card-width: var(--card-width, 300px);--resolved-card-min-width: var(--card-min-width, var(--card-width, var(--card-max-width)));--resolved-card-max-width: var(--card-max-width, var(--card-width, var(--card-min-width)));--resolved-card-height: var(--card-height, auto);--resolved-card-min-height: var(--card-min-height, auto);--resolved-card-background: var(--card-background, var(--aup-card-container-default-background-color));flex:1;display:flex;flex-direction:column;align-items:stretch;background:var(--resolved-card-background)}:host.auto-columns * .card-container{grid-template-columns:repeat(auto-fill,minmax(var(--resolved-card-min-width),var(--resolved-card-max-width)))}:host:not(.auto-columns) * .card-container{grid-template-columns:repeat(var(--aup-card-container-column-count),1fr)}.card-container{display:grid;box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));max-width:100%;grid-auto-rows:minmax(var(--resolved-card-min-height),var(--resolved-card-height));grid-gap:var(--resolved-card-gap)}aup-scroll-container,.no-scroll-container{flex:1}.add-card-container{height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;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}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.add-card-container:hover{border-color:transparent;background-color:#fff;color:#0000008a}.add-card-template-container{height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}\n"], dependencies: [{ 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: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"
|
|
1382
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CardContainerComponent, selector: "aup-card-container", inputs: { columnCount: "columnCount", enableScroll: "enableScroll" }, host: { properties: { "class.auto-columns": "this.isAutoColumns", "class.single-column": "this.isSingleColumn" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"header-container\">\n <ng-content select=\"[card-container-header], [slot=header]\"></ng-content>\n</div>\n\n<ng-template #content>\n <div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.visible$.value && addCardCommand.enabled$.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"hasFace$.value\" [faces]=\"_addCardFaces$.value\"/>\n <aup-icon *ngIf=\"!hasFace$.value\" icon=\"mat:add\"/>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n </div>\n</ng-template>\n\n<div class=\"no-scroll-container\" *ngIf=\"!enableScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n\n<aup-scroll-container *ngIf=\"enableScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</aup-scroll-container>\n\n<div class=\"footer-container\">\n <ng-content select=\"[card-container-footer], [slot=footer]\"></ng-content>\n</div>\n\n", styles: [":host{--resolved-card-gap: var(--card-gap, 16px);--resolved-card-width: var(--card-width, 300px);--resolved-card-min-width: var(--card-min-width, var(--card-width, var(--card-max-width)));--resolved-card-max-width: var(--card-max-width, var(--card-width, var(--card-min-width)));--resolved-card-height: var(--card-height, auto);--resolved-card-min-height: var(--card-min-height, auto);--resolved-card-background: var(--card-background, var(--aup-card-container-default-background-color));flex:1;display:flex;flex-direction:column;align-items:stretch;background:var(--resolved-card-background)}:host.auto-columns * .card-container{grid-template-columns:repeat(auto-fill,minmax(var(--resolved-card-min-width),var(--resolved-card-max-width)))}:host:not(.auto-columns) * .card-container{grid-template-columns:repeat(var(--aup-card-container-column-count),1fr)}.card-container{display:grid;box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));max-width:100%;grid-auto-rows:minmax(var(--resolved-card-min-height),var(--resolved-card-height));grid-gap:var(--resolved-card-gap)}aup-scroll-container,.no-scroll-container{flex:1}.add-card-container{height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;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}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.add-card-container:hover{border-color:transparent;background-color:#fff;color:#0000008a}.add-card-template-container{height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}\n"], dependencies: [{ 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: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "component", type: ScrollContainerComponent, selector: "aup-scroll-container", inputs: ["disableScroll$", "disableScroll"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }] });
|
|
1392
1383
|
}
|
|
1393
1384
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CardContainerComponent, decorators: [{
|
|
1394
1385
|
type: Component,
|
|
@@ -1535,7 +1526,7 @@ class ButtonRendererComponent extends PopupAwareComponent {
|
|
|
1535
1526
|
this.matControl.focus();
|
|
1536
1527
|
}
|
|
1537
1528
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ButtonRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1538
|
-
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:
|
|
1529
|
+
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 <!-- The tooltip is the only text an icon-only button has, so it is the button's name as well. -->\n <button #button mat-icon-button [color]=\"color$.value\" [disabled]=\"!enabled\" [matTooltip]=\"tooltip$.value\"\n [attr.aria-label]=\"tooltip$.value || null\">\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: i4.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"] }] });
|
|
1539
1530
|
}
|
|
1540
1531
|
__decorate([
|
|
1541
1532
|
Proxify(),
|
|
@@ -1563,7 +1554,7 @@ __decorate([
|
|
|
1563
1554
|
], ButtonRendererComponent.prototype, "busy", null);
|
|
1564
1555
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ButtonRendererComponent, decorators: [{
|
|
1565
1556
|
type: Component,
|
|
1566
|
-
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"] }]
|
|
1557
|
+
args: [{ selector: 'aup-button-renderer', template: "<ng-container *ngIf=\"!renderAsMenuItem\">\n <ng-container *ngIf=\"iconOnly$.value\">\n <!-- The tooltip is the only text an icon-only button has, so it is the button's name as well. -->\n <button #button mat-icon-button [color]=\"color$.value\" [disabled]=\"!enabled\" [matTooltip]=\"tooltip$.value\"\n [attr.aria-label]=\"tooltip$.value || null\">\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"] }]
|
|
1567
1558
|
}], ctorParameters: function () { return []; }, propDecorators: { faces$: [{
|
|
1568
1559
|
type: Input
|
|
1569
1560
|
}], faces: [{
|
|
@@ -1694,7 +1685,7 @@ class CommandComponent extends PopupAwareComponent {
|
|
|
1694
1685
|
this.button.focus();
|
|
1695
1686
|
}
|
|
1696
1687
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CommandComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1697
|
-
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"
|
|
1688
|
+
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"] }] });
|
|
1698
1689
|
}
|
|
1699
1690
|
__decorate([
|
|
1700
1691
|
Proxify(),
|
|
@@ -1921,7 +1912,7 @@ class FileDownloadComponent extends PopupAwareComponent {
|
|
|
1921
1912
|
document.body.removeChild(link);
|
|
1922
1913
|
}
|
|
1923
1914
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FileDownloadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1924
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FileDownloadComponent, selector: "aup-file-download", inputs: { download$: "download$", download: "download", alignFace: "alignFace" }, host: { properties: { "class": "this.alignFace" } }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!inPopup\">\n <ng-container [ngSwitch]=\"buttonStyle$.value\">\n <ng-container *ngSwitchCase=\"CommandFaceUtil.Style.STROKED\">\n <a mat-stroked-button [href]=\"download?.url\" [download]=\"download?.saveAs\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n </ng-container>\n <ng-container *ngSwitchCase=\"CommandFaceUtil.Style.RAISED\">\n <a mat-raised-button [href]=\"download?.url\" [download]=\"download?.saveAs\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <a mat-button [href]=\"download?.url\" [download]=\"download?.saveAs\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n </ng-container>\n </ng-container>\n\n</ng-container>\n\n<ng-container *ngIf=\"inPopup\">\n <a mat-menu-item (click)=\"downloadFile()\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n</ng-container>\n\n", styles: [""], 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.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type:
|
|
1915
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FileDownloadComponent, selector: "aup-file-download", inputs: { download$: "download$", download: "download", alignFace: "alignFace" }, host: { properties: { "class": "this.alignFace" } }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!inPopup\">\n <ng-container [ngSwitch]=\"buttonStyle$.value\">\n <ng-container *ngSwitchCase=\"CommandFaceUtil.Style.STROKED\">\n <a mat-stroked-button [href]=\"download?.url\" [download]=\"download?.saveAs\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n </ng-container>\n <ng-container *ngSwitchCase=\"CommandFaceUtil.Style.RAISED\">\n <a mat-raised-button [href]=\"download?.url\" [download]=\"download?.saveAs\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <a mat-button [href]=\"download?.url\" [download]=\"download?.saveAs\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n </ng-container>\n </ng-container>\n\n</ng-container>\n\n<ng-container *ngIf=\"inPopup\">\n <a mat-menu-item (click)=\"downloadFile()\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n</ng-container>\n\n", styles: [""], 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.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i4.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"] }] });
|
|
1925
1916
|
}
|
|
1926
1917
|
__decorate([
|
|
1927
1918
|
Proxify(),
|
|
@@ -2008,7 +1999,7 @@ class SeparatorComponent extends PopupAwareComponent {
|
|
|
2008
1999
|
}
|
|
2009
2000
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SeparatorComponent, deps: [{ token: CommandContainer, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
2010
2001
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SeparatorComponent, selector: "aup-separator", host: { properties: { "class.horizontal-container": "this.isHorizontalContainer" } }, usesInheritance: true, ngImport: i0, template: `
|
|
2011
|
-
<mat-divider [vertical]="!isHorizontalContainer()"></mat-divider>`, isInline: true, styles: ["", ":host(.horizontal-container){display:inline-flex;flex-direction:row;align-items:stretch}\n"], dependencies: [{ kind: "component", type: i2$
|
|
2002
|
+
<mat-divider [vertical]="!isHorizontalContainer()"></mat-divider>`, isInline: true, styles: ["", ":host(.horizontal-container){display:inline-flex;flex-direction:row;align-items:stretch}\n"], dependencies: [{ kind: "component", type: i2$3.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }] });
|
|
2012
2003
|
}
|
|
2013
2004
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SeparatorComponent, decorators: [{
|
|
2014
2005
|
type: Component,
|
|
@@ -2163,7 +2154,7 @@ class PopupMenuRendererComponent extends DisposableComponent {
|
|
|
2163
2154
|
undefined;
|
|
2164
2155
|
}
|
|
2165
2156
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupMenuRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2166
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PopupMenuRendererComponent, selector: "aup-popup-menu-renderer", inputs: { parent: "parent" }, outputs: { commandFired: "commandFired" }, viewQueries: [{ propertyName: "menuComponent", first: true, predicate: ["menu"], descendants: true, static: true }, { propertyName: "triggers", predicate: MatMenuTrigger, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-menu #menu [xPosition]=\"parent.xPosition\" [yPosition]=\"parent.yPosition\">\n <ng-template matMenuContent>\n <ng-container *ngFor=\"let child of renderableChildren; trackBy: TrackBy.byIndex\" >\n <button *ngIf=\"isCommand(child) && isCommandVisible(child)\"\n (click)=\"executeCommand(child)\"\n [disabled]=\"!isCommandEnabled(child)\"\n [matTooltip]=\"getTooltip(child)\"\n mat-menu-item>\n <aup-command-face [faces]=\"getFaces(child)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n\n <ng-container *ngIf=\"isPopupMenu(child)\">\n <button mat-menu-item\n [disabled]=\"!isPopupMenuEnabled(child)\"\n [matMenuTriggerFor]=\"innerPanel.menuComponent\"\n >\n <aup-command-face [faces]=\"getFaces(child)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #innerPanel\n [parent]=\"child\"\n (commandFired)=\"onCommandFired()\"></aup-popup-menu-renderer>\n </ng-container>\n\n <!-- Hack... -->\n <a *ngIf=\"isFileDownload(child)\" mat-menu-item [href]=\"child.download.url\" [download]=\"child.download.saveAs\">\n <aup-command-face [faces]=\"getFaces(child)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </a>\n <mat-divider *ngIf=\"isSeparator(child)\"></mat-divider>\n\n </ng-container>\n\n </ng-template>\n</mat-menu>\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: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type:
|
|
2157
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PopupMenuRendererComponent, selector: "aup-popup-menu-renderer", inputs: { parent: "parent" }, outputs: { commandFired: "commandFired" }, viewQueries: [{ propertyName: "menuComponent", first: true, predicate: ["menu"], descendants: true, static: true }, { propertyName: "triggers", predicate: MatMenuTrigger, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-menu #menu [xPosition]=\"parent.xPosition\" [yPosition]=\"parent.yPosition\">\n <ng-template matMenuContent>\n <ng-container *ngFor=\"let child of renderableChildren; trackBy: TrackBy.byIndex\" >\n <button *ngIf=\"isCommand(child) && isCommandVisible(child)\"\n (click)=\"executeCommand(child)\"\n [disabled]=\"!isCommandEnabled(child)\"\n [matTooltip]=\"getTooltip(child)\"\n mat-menu-item>\n <aup-command-face [faces]=\"getFaces(child)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n\n <ng-container *ngIf=\"isPopupMenu(child)\">\n <button mat-menu-item\n [disabled]=\"!isPopupMenuEnabled(child)\"\n [matMenuTriggerFor]=\"innerPanel.menuComponent\"\n >\n <aup-command-face [faces]=\"getFaces(child)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #innerPanel\n [parent]=\"child\"\n (commandFired)=\"onCommandFired()\"></aup-popup-menu-renderer>\n </ng-container>\n\n <!-- Hack... -->\n <a *ngIf=\"isFileDownload(child)\" mat-menu-item [href]=\"child.download.url\" [download]=\"child.download.saveAs\">\n <aup-command-face [faces]=\"getFaces(child)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </a>\n <mat-divider *ngIf=\"isSeparator(child)\"></mat-divider>\n\n </ng-container>\n\n </ng-template>\n</mat-menu>\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: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i4.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i4.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i4.MatMenuContent, selector: "ng-template[matMenuContent]" }, { kind: "directive", type: i4.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i2$3.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }, { kind: "component", type: PopupMenuRendererComponent, selector: "aup-popup-menu-renderer", inputs: ["parent"], outputs: ["commandFired"] }] });
|
|
2167
2158
|
}
|
|
2168
2159
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupMenuRendererComponent, decorators: [{
|
|
2169
2160
|
type: Component,
|
|
@@ -2206,7 +2197,7 @@ class MoreMenuComponent extends AbstractPopupMenuComponent {
|
|
|
2206
2197
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: MoreMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2207
2198
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: MoreMenuComponent, selector: "aup-more-menu", inputs: { tooltip: "tooltip" }, providers: [
|
|
2208
2199
|
{ provide: POPUP_CONTAINER, useExisting: MoreMenuComponent }
|
|
2209
|
-
], 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:
|
|
2200
|
+
], 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: i4.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"] }] });
|
|
2210
2201
|
}
|
|
2211
2202
|
__decorate([
|
|
2212
2203
|
StoreInValueModel(),
|
|
@@ -2239,7 +2230,7 @@ class PopupMenuComponent extends AbstractPopupMenuComponent {
|
|
|
2239
2230
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PopupMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2240
2231
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PopupMenuComponent, selector: "aup-popup-menu", inputs: { face$: "face$", face: "face" }, providers: [
|
|
2241
2232
|
{ provide: POPUP_CONTAINER, useExisting: PopupMenuComponent }
|
|
2242
|
-
], 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:
|
|
2233
|
+
], 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: i4.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"] }] });
|
|
2243
2234
|
}
|
|
2244
2235
|
__decorate([
|
|
2245
2236
|
DelegateToValueModel('faceModelDelegate'),
|
|
@@ -2890,7 +2881,7 @@ class AutocompleteInputComponent extends AbstractValueInputComponent {
|
|
|
2890
2881
|
});
|
|
2891
2882
|
}
|
|
2892
2883
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AutocompleteInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2893
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AutocompleteInputComponent, selector: "aup-autocomplete-input", inputs: { rawTextContent$: "rawTextContent$", options$: "options$", options: "options", optionLabel: "optionLabel", allowNil: "allowNil", autoActiveFirstOption: "autoActiveFirstOption", autoFilter: "autoFilter", optionLabelFormat: "optionLabelFormat", filterFactory: "filterFactory" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "nilOptionTemplateRef", first: true, predicate: ["nilOptionTemplate"], descendants: true }], viewQueries: [{ propertyName: "matInputComponent", first: true, predicate: MatInput, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"string\"\n matInput\n [matAutocomplete]=\"autocomplete\"\n placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"updateFilter($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-autocomplete #autocomplete [displayWith]=\"optionLabelFormat\"\n [autoActiveFirstOption]=\"autoActiveFirstOption\"\n (optionSelected)=\"onSelect($event)\">\n <mat-option *ngFor=\"let option of filteredOptions.value; let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n </mat-autocomplete>\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</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"\n >\n </ng-container>\n </div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px;white-space:nowrap}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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$
|
|
2884
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AutocompleteInputComponent, selector: "aup-autocomplete-input", inputs: { rawTextContent$: "rawTextContent$", options$: "options$", options: "options", optionLabel: "optionLabel", allowNil: "allowNil", autoActiveFirstOption: "autoActiveFirstOption", autoFilter: "autoFilter", optionLabelFormat: "optionLabelFormat", filterFactory: "filterFactory" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "nilOptionTemplateRef", first: true, predicate: ["nilOptionTemplate"], descendants: true }], viewQueries: [{ propertyName: "matInputComponent", first: true, predicate: MatInput, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"string\"\n matInput\n [matAutocomplete]=\"autocomplete\"\n placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"updateFilter($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-autocomplete #autocomplete [displayWith]=\"optionLabelFormat\"\n [autoActiveFirstOption]=\"autoActiveFirstOption\"\n (optionSelected)=\"onSelect($event)\">\n <mat-option *ngFor=\"let option of filteredOptions.value; let i = index\"\n [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n </mat-autocomplete>\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</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{formatOption(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"\n >\n </ng-container>\n </div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px;white-space:nowrap}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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$4.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$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.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$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { 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: i8.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple", "hideSingleSelectionIndicator"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i8.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
2894
2885
|
}
|
|
2895
2886
|
__decorate([
|
|
2896
2887
|
Proxify(),
|
|
@@ -2948,7 +2939,7 @@ class CheckboxInputComponent extends AbstractValueInputComponent {
|
|
|
2948
2939
|
this.componentValue$.value = $event.checked;
|
|
2949
2940
|
}
|
|
2950
2941
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CheckboxInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2951
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CheckboxInputComponent, selector: "aup-checkbox-input", inputs: { color: "color", labelPosition: "labelPosition" }, usesInheritance: true, ngImport: i0, template: "<!-- TODO: add focus binding -->\n<!-- NOTE: using [(ngModel)] affects how material renders the component and makes it harder to test\n so we're using [checked] and (change).\n The `?? false` is part of that: an optional boolean model holds undefined until something sets\n it, and a nil bound value renders the same but makes Angular drop the binding's dev-mode\n ng-reflect attribute entirely, which is what several test harnesses read. Coerced here for the\n view only \u2014 the model keeps whatever it holds. -->\n<mat-checkbox\n [checked]=\"componentValue$.value ?? false\"\n (change)=\"select($event)\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{ label }}<!--\n The icon lives inside the label rather than as a sibling: :host is a column flex, so a sibling\n would stack underneath and add the very height dense mode exists to avoid.\n--><span class=\"aup-validation-icon\" *ngIf=\"popupMessage\"><aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon></span>\n</mat-checkbox>\n<!--\n The wrapper has to persist for the grid collapse to have something to animate \u2014 the messages\n themselves come and go with *ngIf. inlineHintText/inlineError are already null when dense, so\n no !dense guard is needed.\n-->\n<div class=\"aup-subscript\">\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n</div>\n", styles: [":host{display:inline-flex;flex-direction:column;padding:10px 0 0}:host.dense{padding:4px 0 2px}.aup-subscript mat-hint,.aup-subscript mat-error{margin-left:24px}aup-icon.aup-error,aup-icon.aup-warning,aup-icon.aup-info{--aup-icon-size: 16px;vertical-align:text-bottom}span.aup-validation-icon{display:inline-block;overflow:hidden;vertical-align:text-bottom;animation:aup-validation-icon-in .15s ease-out}span.aup-validation-icon aup-icon{margin-left:4px}@media (prefers-reduced-motion: reduce){span.aup-validation-icon{animation:none}}\n"], 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: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: AupTooltipDirective, selector: "[aupTooltip]", inputs: ["aupTooltip", "aupTooltipPosition", "aupTooltipPositionAtOrigin", "aupTooltipDisabled", "aupTooltipShowDelay", "aupTooltipHideDelay", "aupTooltipTouchGestures", "aupTooltipClass"], exportAs: ["aupTooltip"] }, { kind: "component", type: i2$
|
|
2942
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: CheckboxInputComponent, selector: "aup-checkbox-input", inputs: { color: "color", labelPosition: "labelPosition" }, usesInheritance: true, ngImport: i0, template: "<!-- TODO: add focus binding -->\n<!-- NOTE: using [(ngModel)] affects how material renders the component and makes it harder to test\n so we're using [checked] and (change).\n The `?? false` is part of that: an optional boolean model holds undefined until something sets\n it, and a nil bound value renders the same but makes Angular drop the binding's dev-mode\n ng-reflect attribute entirely, which is what several test harnesses read. Coerced here for the\n view only \u2014 the model keeps whatever it holds. -->\n<mat-checkbox\n [checked]=\"componentValue$.value ?? false\"\n (change)=\"select($event)\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{ label }}<!--\n The icon lives inside the label rather than as a sibling: :host is a column flex, so a sibling\n would stack underneath and add the very height dense mode exists to avoid.\n--><span class=\"aup-validation-icon\" *ngIf=\"popupMessage\"><aup-icon data-cy=\"validation-icon\"\n [icon]=\"popupIcon\" [ngClass]=\"popupSeverityClass\"\n [aupTooltip]=\"popupMessage\" aupTooltipPosition=\"above\"></aup-icon></span>\n</mat-checkbox>\n<!--\n The wrapper has to persist for the grid collapse to have something to animate \u2014 the messages\n themselves come and go with *ngIf. inlineHintText/inlineError are already null when dense, so\n no !dense guard is needed.\n-->\n<div class=\"aup-subscript\">\n <mat-hint *ngIf=\"inlineHintText\" [ngClass]=\"inlineHintClass\">{{inlineHintText}}</mat-hint>\n <mat-error *ngIf=\"inlineError\">{{inlineError}}</mat-error>\n</div>\n", styles: [":host{display:inline-flex;flex-direction:column;padding:10px 0 0}:host.dense{padding:4px 0 2px}.aup-subscript mat-hint,.aup-subscript mat-error{margin-left:24px}aup-icon.aup-error,aup-icon.aup-warning,aup-icon.aup-info{--aup-icon-size: 16px;vertical-align:text-bottom}span.aup-validation-icon{display:inline-block;overflow:hidden;vertical-align:text-bottom;animation:aup-validation-icon-in .15s ease-out}span.aup-validation-icon aup-icon{margin-left:4px}@media (prefers-reduced-motion: reduce){span.aup-validation-icon{animation:none}}\n"], 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: i4$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: AupTooltipDirective, selector: "[aupTooltip]", inputs: ["aupTooltip", "aupTooltipPosition", "aupTooltipPositionAtOrigin", "aupTooltipDisabled", "aupTooltipShowDelay", "aupTooltipHideDelay", "aupTooltipTouchGestures", "aupTooltipClass"], exportAs: ["aupTooltip"] }, { kind: "component", type: i2$5.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
2952
2943
|
}
|
|
2953
2944
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: CheckboxInputComponent, decorators: [{
|
|
2954
2945
|
type: Component,
|
|
@@ -3002,7 +2993,7 @@ class MultipleSelectInputComponent extends AbstractListInputComponent {
|
|
|
3002
2993
|
})).writeRight();
|
|
3003
2994
|
}
|
|
3004
2995
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: MultipleSelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3005
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: MultipleSelectInputComponent, selector: "aup-multiple-select-input", inputs: { options$: "options$", options: "options", optionLabel: "optionLabel", optionLabelFormat: "optionLabelFormat" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [ngModel]=\"componentList$.value\"\n (ngModelChange)=\"selectAll($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngFor=\"let option of options$.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\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</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px;white-space:nowrap}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:30px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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$
|
|
2996
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: MultipleSelectInputComponent, selector: "aup-multiple-select-input", inputs: { options$: "options$", options: "options", optionLabel: "optionLabel", optionLabelFormat: "optionLabelFormat" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [ngModel]=\"componentList$.value\"\n (ngModelChange)=\"selectAll($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngFor=\"let option of options$.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\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</mat-form-field>\n<div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div>{{placeholder}}</div>\n <div class=\"item\" *ngFor=\"let item of options\">{{optionLabelFormat(item)}}</div>\n</div>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px;white-space:nowrap}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:30px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i5$1.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { 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"] }] });
|
|
3006
2997
|
}
|
|
3007
2998
|
__decorate([
|
|
3008
2999
|
Proxify(),
|
|
@@ -3184,7 +3175,7 @@ class NumberInputComponent extends AbstractValueInputComponent {
|
|
|
3184
3175
|
this.componentValue$.value = value;
|
|
3185
3176
|
}
|
|
3186
3177
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: NumberInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3187
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: NumberInputComponent, selector: "aup-number-input", inputs: { autocomplete: "autocomplete", min$: "min$", min: "min", max$: "max$", max: "max", significantDigits$: "significantDigits$", significantDigits: "significantDigits" }, host: { properties: { "class.touch": "this.touchDensity", "class.aup-steppers-disabled": "this.steppersDisabled", "class.aup-steppers-error": "this.steppersInError" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"stepped-field\">\n <!-- Each density emits the buttons in the order the eye reads them: desktop field \u2192 increment\n (top) \u2192 decrement (bottom), touch decrement \u2192 field \u2192 increment. That started out as a Tab\n fix and the buttons have since left the tab order, but DOM order still wants to match visual\n order \u2014 it is the reading order anyone gets who unhides them, and a CSS-only reorder would\n leave the two permanently disagreeing. -->\n <ng-container *ngIf=\"touchDensity\" [ngTemplateOutlet]=\"decrementStepper\"></ng-container>\n\n <mat-form-field floatLabel=\"always\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n <!-- role is the implicit one for type=number, but stating it is not redundant in practice:\n Chrome's accessibility tree reports a bare number input as a textbox and only reports\n spinbutton once the role is spelled out. aria-valuenow/min/max are deliberately absent \u2014\n the native value, min and max already surface through, and a hand-synced mirror of them\n would be one more thing to get wrong. -->\n <input type=\"number\"\n role=\"spinbutton\"\n matInput\n (keydown)=\"onKeyDown($event)\"\n (wheel)=\"onWheel($event)\"\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [ngModel]=\"displayValue$.value\"\n (ngModelChange)=\"onValueChange($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n [size]=\"4\"\n [step]=\"step$.value\"\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 </mat-form-field>\n\n <!-- Desktop's two buttons share this box: one outline, one divider between them. Touch dissolves\n it with `display: contents` and gives each button its own box, so it holds increment alone. -->\n <section class=\"steppers\" data-cy=\"steppers\">\n <ng-container [ngTemplateOutlet]=\"incrementStepper\"></ng-container>\n <ng-container *ngIf=\"!touchDensity\" [ngTemplateOutlet]=\"decrementStepper\"></ng-container>\n </section>\n\n</div>\n\n<!-- Floors the control's width at the label's, the same trick aup-select-input uses for its options.\n Zero height and visibility:hidden, so it costs nothing but width.\n\n A SIBLING of .stepped-field, never a child: inside the flex row it becomes a third item and adds\n its width to the field's instead of setting a floor under it \u2014 the control came out ~170px too\n wide and the label fitted only by accident.\n\n It reserves the steppers' span because the row hands them their width before the field sees any,\n so a floor that only covered the label would still leave the field short of it.\n\n Inert wherever there is no label to measure, which includes every table cell editor: those are\n built without one, so the *ngIf leaves the strut empty and it contributes nothing. -->\n<div class=\"width-strut\" aria-hidden=\"true\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n</div>\n\n<ng-template #incrementStepper>\n <button type=\"button\"\n class=\"stepper increment\"\n data-cy=\"increment\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n (mousedown)=\"onStepperPress($event)\"\n [pectinCommand]=\"incrementCommand\">+</button>\n</ng-template>\n\n<ng-template #decrementStepper>\n <button type=\"button\"\n class=\"stepper decrement\"\n data-cy=\"decrement\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n (mousedown)=\"onStepperPress($event)\"\n [pectinCommand]=\"decrementCommand\">−</button>\n</ng-template>\n", styles: [":host{--stepper-width: 32px;--stepper-span: var(--stepper-width);--stepper-height: 44px;--stepper-outline: var(--mdc-outlined-text-field-outline-color, #dadce0);--stepper-radius: 4px;--stepper-glyph: #5f6368;--stepper-glyph-size: 15px;--stepper-glyph-disabled: #bdc1c6;--stepper-hover: #f1f3f4;--stepper-pressed: #e8eaed}:host input[type=number]{appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}:host .stepped-field{display:flex;flex-direction:row;align-items:flex-start}:host mat-form-field{flex:1 1 auto;min-width:0}:host section.steppers{flex:0 0 auto;display:flex;flex-direction:column;box-sizing:border-box;width:var(--stepper-width);height:var(--stepper-height);border:1px solid var(--stepper-outline);border-left:none;border-radius:0 var(--stepper-radius) var(--stepper-radius) 0;overflow:hidden}:host button.stepper{flex:1;display:flex;align-items:center;justify-content:center;padding:0;border:none;background-color:transparent;cursor:pointer;color:var(--stepper-glyph);font-size:var(--stepper-glyph-size);line-height:1}:host button.stepper:hover:not([disabled]){background-color:var(--stepper-hover)}:host button.stepper:active:not([disabled]){background-color:var(--stepper-pressed)}:host button.stepper[disabled]{color:var(--stepper-glyph-disabled);cursor:default;pointer-events:none}:host button.stepper:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--mdc-outlined-text-field-focus-outline-color, #3f51b5)}:host .stepper+.stepper{border-top:1px solid var(--stepper-outline)}:host ::ng-deep .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-right-radius:0;border-bottom-right-radius:0}:host .width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:0;white-space:nowrap;padding-right:calc(var(--stepper-span) + 35px)}:host .width-strut mat-label{font-size:75%}:host .width-strut>.item{font-size:16px;padding-left:0}:host .width-strut mat-label{font-size:calc(var(--mdc-outlined-text-field-label-text-size, 16px) * .75);font-family:var(--mdc-outlined-text-field-label-text-font, inherit);font-weight:var(--mdc-outlined-text-field-label-text-weight, inherit);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, normal)}:host ::ng-deep .mdc-notched-outline .mdc-floating-label--float-above{text-overflow:ellipsis}:host ::ng-deep .mdc-floating-label{text-overflow:ellipsis}:host-context(.aup-cell-renderer) .width-strut{display:none}:host(.dense){--stepper-height: 37px;--stepper-glyph-size: 14px}:host(.touch){--stepper-width: var(--stepper-height);--stepper-span: calc(var(--stepper-height) * 2);--stepper-glyph-size: 22px;--mat-form-field-container-text-size: 18px}:host(.touch) section.steppers{display:contents}:host(.touch) button.stepper{flex:0 0 auto;box-sizing:border-box;width:var(--stepper-width);height:var(--stepper-height);border:1px solid var(--stepper-outline)}:host(.touch) button.stepper.decrement{border-right:none;border-radius:var(--stepper-radius) 0 0 var(--stepper-radius)}:host(.touch) button.stepper.increment{border-left:none;border-radius:0 var(--stepper-radius) var(--stepper-radius) 0}:host(.touch) ::ng-deep .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:0;border-bottom-left-radius:0}:host:has(.mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover){--stepper-outline: var(--mdc-outlined-text-field-hover-outline-color, rgba(0, 0, 0, .87))}:host:has(.mdc-text-field--focused){--stepper-outline: var(--mdc-outlined-text-field-focus-outline-color, #3f51b5)}:host:has(.mdc-text-field--focused) section.steppers{border-width:2px}:host(.touch):has(.mdc-text-field--focused) button.stepper{border-width:2px}:host(.aup-steppers-error){--stepper-outline: var(--mdc-outlined-text-field-error-outline-color, #f44336)}:host(.aup-steppers-error):has(.mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover){--stepper-outline: var(--mdc-outlined-text-field-error-hover-outline-color, #f44336)}:host(.aup-steppers-error):has(.mdc-text-field--focused){--stepper-outline: var(--mdc-outlined-text-field-error-focus-outline-color, #f44336)}:host(.aup-steppers-disabled){--stepper-outline: var(--mdc-outlined-text-field-disabled-outline-color, rgba(0, 0, 0, .06))}\n"], 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: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$5.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i2$5.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { 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: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault", "hideWhenInvisible"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
3178
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: NumberInputComponent, selector: "aup-number-input", inputs: { autocomplete: "autocomplete", min$: "min$", min: "min", max$: "max$", max: "max", significantDigits$: "significantDigits$", significantDigits: "significantDigits" }, host: { properties: { "class.touch": "this.touchDensity", "class.aup-steppers-disabled": "this.steppersDisabled", "class.aup-steppers-error": "this.steppersInError" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"stepped-field\">\n <!-- Each density emits the buttons in the order the eye reads them: desktop field \u2192 increment\n (top) \u2192 decrement (bottom), touch decrement \u2192 field \u2192 increment. That started out as a Tab\n fix and the buttons have since left the tab order, but DOM order still wants to match visual\n order \u2014 it is the reading order anyone gets who unhides them, and a CSS-only reorder would\n leave the two permanently disagreeing. -->\n <ng-container *ngIf=\"touchDensity\" [ngTemplateOutlet]=\"decrementStepper\"></ng-container>\n\n <mat-form-field floatLabel=\"always\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n <!-- role is the implicit one for type=number, but stating it is not redundant in practice:\n Chrome's accessibility tree reports a bare number input as a textbox and only reports\n spinbutton once the role is spelled out. aria-valuenow/min/max are deliberately absent \u2014\n the native value, min and max already surface through, and a hand-synced mirror of them\n would be one more thing to get wrong. -->\n <input type=\"number\"\n role=\"spinbutton\"\n matInput\n (keydown)=\"onKeyDown($event)\"\n (wheel)=\"onWheel($event)\"\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [ngModel]=\"displayValue$.value\"\n (ngModelChange)=\"onValueChange($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [min]=\"min\"\n [max]=\"max\"\n [size]=\"4\"\n [step]=\"step$.value\"\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 </mat-form-field>\n\n <!-- Desktop's two buttons share this box: one outline, one divider between them. Touch dissolves\n it with `display: contents` and gives each button its own box, so it holds increment alone. -->\n <section class=\"steppers\" data-cy=\"steppers\">\n <ng-container [ngTemplateOutlet]=\"incrementStepper\"></ng-container>\n <ng-container *ngIf=\"!touchDensity\" [ngTemplateOutlet]=\"decrementStepper\"></ng-container>\n </section>\n\n</div>\n\n<!-- Floors the control's width at the label's, the same trick aup-select-input uses for its options.\n Zero height and visibility:hidden, so it costs nothing but width.\n\n A SIBLING of .stepped-field, never a child: inside the flex row it becomes a third item and adds\n its width to the field's instead of setting a floor under it \u2014 the control came out ~170px too\n wide and the label fitted only by accident.\n\n It reserves the steppers' span because the row hands them their width before the field sees any,\n so a floor that only covered the label would still leave the field short of it.\n\n Inert wherever there is no label to measure, which includes every table cell editor: those are\n built without one, so the *ngIf leaves the strut empty and it contributes nothing. -->\n<div class=\"width-strut\" aria-hidden=\"true\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n</div>\n\n<ng-template #incrementStepper>\n <button type=\"button\"\n class=\"stepper increment\"\n data-cy=\"increment\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n (mousedown)=\"onStepperPress($event)\"\n [pectinCommand]=\"incrementCommand\">+</button>\n</ng-template>\n\n<ng-template #decrementStepper>\n <button type=\"button\"\n class=\"stepper decrement\"\n data-cy=\"decrement\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n (mousedown)=\"onStepperPress($event)\"\n [pectinCommand]=\"decrementCommand\">−</button>\n</ng-template>\n", styles: [":host{--stepper-width: 32px;--stepper-span: var(--stepper-width);--stepper-height: 44px;--stepper-outline: var(--mdc-outlined-text-field-outline-color, #dadce0);--stepper-radius: 4px;--stepper-glyph: #5f6368;--stepper-glyph-size: 15px;--stepper-glyph-disabled: #bdc1c6;--stepper-hover: #f1f3f4;--stepper-pressed: #e8eaed}:host input[type=number]{appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}:host .stepped-field{display:flex;flex-direction:row;align-items:flex-start}:host mat-form-field{flex:1 1 auto;min-width:0}:host section.steppers{flex:0 0 auto;display:flex;flex-direction:column;box-sizing:border-box;width:var(--stepper-width);height:var(--stepper-height);border:1px solid var(--stepper-outline);border-left:none;border-radius:0 var(--stepper-radius) var(--stepper-radius) 0;overflow:hidden}:host button.stepper{flex:1;display:flex;align-items:center;justify-content:center;padding:0;border:none;background-color:transparent;cursor:pointer;color:var(--stepper-glyph);font-size:var(--stepper-glyph-size);line-height:1}:host button.stepper:hover:not([disabled]){background-color:var(--stepper-hover)}:host button.stepper:active:not([disabled]){background-color:var(--stepper-pressed)}:host button.stepper[disabled]{color:var(--stepper-glyph-disabled);cursor:default;pointer-events:none}:host button.stepper:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--mdc-outlined-text-field-focus-outline-color, #3f51b5)}:host .stepper+.stepper{border-top:1px solid var(--stepper-outline)}:host ::ng-deep .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-right-radius:0;border-bottom-right-radius:0}:host .width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:0;white-space:nowrap;padding-right:calc(var(--stepper-span) + 35px)}:host .width-strut mat-label{font-size:75%}:host .width-strut>.item{font-size:16px;padding-left:0}:host .width-strut mat-label{font-size:calc(var(--mdc-outlined-text-field-label-text-size, 16px) * .75);font-family:var(--mdc-outlined-text-field-label-text-font, inherit);font-weight:var(--mdc-outlined-text-field-label-text-weight, inherit);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, normal)}:host ::ng-deep .mdc-notched-outline .mdc-floating-label--float-above{text-overflow:ellipsis}:host ::ng-deep .mdc-floating-label{text-overflow:ellipsis}:host-context(.aup-cell-renderer) .width-strut{display:none}:host(.dense){--stepper-height: 37px;--stepper-glyph-size: 14px}:host(.touch){--stepper-width: var(--stepper-height);--stepper-span: calc(var(--stepper-height) * 2);--stepper-glyph-size: 22px;--mat-form-field-container-text-size: 18px}:host(.touch) section.steppers{display:contents}:host(.touch) button.stepper{flex:0 0 auto;box-sizing:border-box;width:var(--stepper-width);height:var(--stepper-height);border:1px solid var(--stepper-outline)}:host(.touch) button.stepper.decrement{border-right:none;border-radius:var(--stepper-radius) 0 0 var(--stepper-radius)}:host(.touch) button.stepper.increment{border-left:none;border-radius:0 var(--stepper-radius) var(--stepper-radius) 0}:host(.touch) ::ng-deep .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:0;border-bottom-left-radius:0}:host:has(.mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover){--stepper-outline: var(--mdc-outlined-text-field-hover-outline-color, rgba(0, 0, 0, .87))}:host:has(.mdc-text-field--focused){--stepper-outline: var(--mdc-outlined-text-field-focus-outline-color, #3f51b5)}:host:has(.mdc-text-field--focused) section.steppers{border-width:2px}:host(.touch):has(.mdc-text-field--focused) button.stepper{border-width:2px}:host(.aup-steppers-error){--stepper-outline: var(--mdc-outlined-text-field-error-outline-color, #f44336)}:host(.aup-steppers-error):has(.mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover){--stepper-outline: var(--mdc-outlined-text-field-error-hover-outline-color, #f44336)}:host(.aup-steppers-error):has(.mdc-text-field--focused){--stepper-outline: var(--mdc-outlined-text-field-error-focus-outline-color, #f44336)}:host(.aup-steppers-disabled){--stepper-outline: var(--mdc-outlined-text-field-disabled-outline-color, rgba(0, 0, 0, .06))}\n"], 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: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$4.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$4.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i2$4.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i2$4.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$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4$1.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: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
3188
3179
|
}
|
|
3189
3180
|
__decorate([
|
|
3190
3181
|
Proxify(),
|
|
@@ -3266,7 +3257,7 @@ class PasswordInputComponent extends AbstractValueInputComponent {
|
|
|
3266
3257
|
return this.showPassword$.value ? "text" : "password";
|
|
3267
3258
|
}
|
|
3268
3259
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PasswordInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3269
|
-
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$
|
|
3260
|
+
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$4.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$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.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$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4$1.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"] }] });
|
|
3270
3261
|
}
|
|
3271
3262
|
__decorate([
|
|
3272
3263
|
Proxify(),
|
|
@@ -3300,7 +3291,7 @@ class SearchInputComponent extends AbstractValueInputComponent {
|
|
|
3300
3291
|
this.clearCommand.disableWhile(chain.stringValue(this.componentValue$).isBlank());
|
|
3301
3292
|
}
|
|
3302
3293
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SearchInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3303
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SearchInputComponent, selector: "aup-search-input", inputs: { autocomplete: "autocomplete" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n\n <input 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 <aup-icon matPrefix icon=\"mat:search\"></aup-icon>\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 <button mat-icon-button matSuffix [pectinCommand]=\"clearCommand\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}\n"], 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$
|
|
3294
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SearchInputComponent, selector: "aup-search-input", inputs: { autocomplete: "autocomplete" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n\n <input 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 <aup-icon matPrefix icon=\"mat:search\"></aup-icon>\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 <button mat-icon-button matSuffix [pectinCommand]=\"clearCommand\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}\n"], 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$4.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$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.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$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4$1.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: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
3304
3295
|
}
|
|
3305
3296
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SearchInputComponent, decorators: [{
|
|
3306
3297
|
type: Component,
|
|
@@ -3787,7 +3778,7 @@ class SelectInputComponent extends AbstractValueInputComponent {
|
|
|
3787
3778
|
});
|
|
3788
3779
|
}
|
|
3789
3780
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3790
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SelectInputComponent, selector: "aup-select-input", inputs: { options$: "options$", options: "options", optionLabel: "optionLabel", allowNil$: "allowNil$", allowNil: "allowNil", appearance: "appearance", opens: "opens", listTitle: "listTitle", optionIcon: "optionIcon", optionCounts: "optionCounts", optionLabelFormat: "optionLabelFormat", searchable: "searchable", searchPlaceholder: "searchPlaceholder", noResultsText: "noResultsText", searchText$: "searchText$", optionSearchText: "optionSearchText", filterFactory: "filterFactory" }, host: { properties: { "class.appearance-button": "this.buttonAppearance" } }, queries: [{ propertyName: "selectedOptionTemplateRef", first: true, predicate: ["selectedOptionTemplate"], descendants: true }, { propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "nilOptionTemplateRef", first: true, predicate: ["nilOptionTemplate"], descendants: true }], viewQueries: [{ propertyName: "searchInputRef", first: true, predicate: ["searchInput"], descendants: true }, { propertyName: "matSelect", first: true, predicate: MatSelect, descendants: true }, { propertyName: "listButtonRef", first: true, predicate: ["listButton"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<!--\nTwo shells, one select. The parts Angular resolves by DECLARATION - mat-select's content queries\nfor <mat-select-trigger> and <mat-option>, mat-form-field's for its control, and the element\ninjector mat-select reads MAT_FORM_FIELD from - do not follow an <ng-template> to where\nngTemplateOutlet inserts it, so the triggers, the nil row and the option list are declared in place\nin each shell. Only the pieces nothing queries are shared: the search box, the no-results row and\nthe footer projection. Keep the two <mat-select> blocks in step; the spec asserts both render the\nsame options and honour the same templates.\n-->\n\n<ng-template #searchBox>\n <div class=\"aup-select-search\" *ngIf=\"searchable\"\n (keydown)=\"onSearchKeydown($event)\"\n (click)=\"$event.stopPropagation()\">\n <aup-icon class=\"aup-select-search__icon\" icon=\"mat:search\"></aup-icon>\n <!--\n Deliberately a bare input: matInput outside a mat-form-field is a MatFormFieldControl with no\n host, and aup-search-input drags in a whole form field (label slot, subscript row,\n .aup-input-component density) that has no business inside a dropdown panel.\n [value]/(input) rather than ngModel avoids a missing-name error inside a host <form>.\n -->\n <input #searchInput type=\"text\" class=\"aup-select-search__input\"\n data-cy=\"select-search\"\n autocomplete=\"off\"\n [placeholder]=\"searchPlaceholderText\"\n [attr.aria-label]=\"searchPlaceholderText\"\n [value]=\"searchText$.value || ''\"\n (input)=\"onSearchInput($event)\">\n <button type=\"button\" class=\"aup-select-search__clear\" tabindex=\"-1\"\n *ngIf=\"searchText$.value\" data-cy=\"select-search-clear\"\n (click)=\"clearSearch()\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n </div>\n</ng-template>\n\n<ng-template #noResults>\n <!--\n A plain div, NOT a mat-option: a mat-option here would be selectable, and would keep\n MatSelect._canOpen() satisfied with a row that means \"nothing\".\n -->\n <div class=\"aup-select-search__no-results\" data-cy=\"select-no-results\"\n *ngIf=\"searchable && noMatches$.value\">{{noResultsMessage}}</div>\n</ng-template>\n\n<!-- Declared once so the projection has one home; stamped into whichever shell renders. -->\n<ng-template #footer>\n <ng-content select=\"[select-option-footer]\"></ng-content>\n</ng-template>\n\n<ng-container *ngIf=\"!buttonAppearance; else buttonShell\">\n<ng-container *ngIf=\"!opensList; else fieldListShell\">\n <mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [panelWidth]=\"fieldPanelWidth\"\n >\n <!--\n TODO: dave has a scenario where the selected item isn't rendering that I can't reproduce so we explicity render it..\n It typically happens because the ngModel value isn't the one contained in the list - this means our source model\n identifyOf function has changed and our id$/lookup$/componentValue$ are out of sync.\n We get around this for now by explicity rendering the component value.\n Please Note: I haven't been able to reproduce this\n -->\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <ng-container [ngTemplateOutlet]=\"searchBox\"></ng-container>\n\n <!--\n Deliberately outside the filter: the nil option is a clear-the-selection affordance, not one of\n the data options, so it stays available while searching (and keeps MatSelect._canOpen() happy).\n -->\n <mat-option *ngIf=\"allowNil$.value\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of panelOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\"\n [disabled]=\"isHiddenOption(option)\"\n [class.aup-select-option--filtered]=\"isHiddenOption(option)\">\n <span *ngIf=\"!optionTemplateRef\" class=\"aup-select-option\">\n <aup-icon *ngIf=\"optionIcon?.(option) as icon\" class=\"aup-select-option__icon\" [icon]=\"icon\"></aup-icon>\n <span class=\"aup-select-option__label\">{{optionLabelFormat(option)}}</span>\n <span *ngIf=\"panelCount(option) !== undefined\" class=\"aup-select-option__count\"\n [class.zero]=\"panelCount(option) === 0\" data-cy=\"count\">{{panelCount(option)}}</span>\n </span>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"></ng-container>\n </mat-option>\n <ng-container [ngTemplateOutlet]=\"noResults\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"footer\"></ng-container>\n </mat-select>\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 </mat-form-field>\n <div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div class=\"item\" *ngFor=\"let item of cookedOptions$.value\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"></ng-container>\n </div>\n </div>\n</ng-container>\n</ng-container>\n\n<!--\nA field whose options open as a list: the form field holds a read-only input that names the choice and opens the\nlist, so the label, hint, error and validation icon stay as a field has them.\n-->\n<ng-template #fieldListShell>\n <mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput #listButton readonly class=\"aup-select-list-field\" data-cy=\"select-list-field\"\n role=\"combobox\" aria-haspopup=\"listbox\" [attr.aria-expanded]=\"listOpen\"\n [placeholder]=\"placeholder ?? ''\"\n [value]=\"hasValue ? optionLabelFormat(componentValue$.value) : ''\"\n [disabled]=\"!enabled$.value\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [pectinFocusBinding]=\"focusContext\"\n (click)=\"openList()\"\n (keydown.enter)=\"$event.preventDefault(); openList()\"\n (keydown.space)=\"$event.preventDefault(); openList()\"\n (keydown.arrowdown)=\"$event.preventDefault(); openList()\">\n <aup-icon matSuffix class=\"aup-select-list-field__arrow\" icon=\"mat:arrow_drop_down\"></aup-icon>\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 </mat-form-field>\n</ng-template>\n\n<ng-template #buttonShell>\n <!--\n opens=\"list\": a plain button. The options open as a list activity (see SelectOptionList), so there\n is no mat-select, and nothing here is queried by declaration.\n -->\n <button *ngIf=\"opensList; else panelButton\" #listButton type=\"button\"\n class=\"aup-select-button aup-select-list-button\" data-cy=\"select-button\"\n aria-haspopup=\"listbox\" [attr.aria-expanded]=\"listOpen\"\n [disabled]=\"!enabled$.value\"\n [pectinFocusBinding]=\"focusContext\"\n (click)=\"openList()\"\n (keydown.arrowdown)=\"$event.preventDefault(); openList()\">\n <span class=\"aup-select-list-button__value\">\n <ng-container *ngIf=\"!hasValue\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"hasValue && !selectedOptionTemplateRef\">{{optionLabelFormat(componentValue$.value)}}</ng-container>\n <ng-container *ngIf=\"hasValue && selectedOptionTemplateRef\"\n [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </span>\n <aup-icon class=\"aup-select-list-button__arrow\" icon=\"mat:arrow_drop_down\"></aup-icon>\n </button>\n</ng-template>\n\n<ng-template #panelButton>\n <!--\n The box is a WRAPPER around the select, not the select's own element, and it provides\n MAT_FORM_FIELD: mat-select anchors its panel to the form field's origin, and without one falls\n back to its inner trigger div - which sits inside the box's padding, so the panel would open a\n padding's width in from the box's edge. See SelectOverlayOriginDirective. No width strut: a\n button that stretches to its longest option is not a button; the panel, sized to content by the\n null panelWidth, carries the long text instead.\n -->\n <span class=\"aup-select-button\" aupSelectOverlayOrigin data-cy=\"select-button\">\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [panelWidth]=\"null\"\n panelClass=\"aup-select-button-panel\"\n >\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <ng-container [ngTemplateOutlet]=\"searchBox\"></ng-container>\n\n <mat-option *ngIf=\"allowNil$.value\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of panelOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\"\n [disabled]=\"isHiddenOption(option)\"\n [class.aup-select-option--filtered]=\"isHiddenOption(option)\">\n <span *ngIf=\"!optionTemplateRef\" class=\"aup-select-option\">\n <aup-icon *ngIf=\"optionIcon?.(option) as icon\" class=\"aup-select-option__icon\" [icon]=\"icon\"></aup-icon>\n <span class=\"aup-select-option__label\">{{optionLabelFormat(option)}}</span>\n <span *ngIf=\"panelCount(option) !== undefined\" class=\"aup-select-option__count\"\n [class.zero]=\"panelCount(option) === 0\" data-cy=\"count\">{{panelCount(option)}}</span>\n </span>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"></ng-container>\n </mat-option>\n <ng-container [ngTemplateOutlet]=\"noResults\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"footer\"></ng-container>\n </mat-select>\n </span>\n</ng-template>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px;white-space:nowrap}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}.aup-select-search{position:sticky;top:-8px;z-index:1;display:flex;align-items:center;gap:4px;margin:-8px 0 4px;padding:8px 12px;background:var(--mat-select-panel-background-color, #fff);border-bottom:1px solid rgba(0,0,0,.12)}.aup-select-search .aup-select-search__input{flex:1 1 auto;min-width:0;border:none;outline:none;background:transparent;font:inherit;color:inherit}.aup-select-search .aup-select-search__clear{flex:0 0 auto;display:inline-flex;padding:0;border:none;background:transparent;cursor:pointer;color:inherit}.aup-select-search__no-results{padding:8px 16px;opacity:.6;font-style:italic}mat-option.aup-select-option--filtered{display:none}:host(.appearance-button){display:inline-flex}.aup-select-button{display:inline-flex;align-items:center;align-self:flex-start;box-sizing:border-box;min-width:10rem;height:36px;padding:0 12px;border:1px solid rgba(0,0,0,.24);border-radius:4px;background:var(--mat-select-panel-background-color, #fff);cursor:pointer}.aup-select-button:has(mat-select:focus-visible){outline:2px solid var(--mdc-theme-primary, #3f51b5);outline-offset:2px}.aup-select-button:has(.mat-mdc-select-disabled){opacity:.5;cursor:default}.aup-select-button>mat-select{width:100%}button.aup-select-list-button{gap:4px;padding-right:4px;font:inherit;color:inherit;text-align:left}button.aup-select-list-button:focus-visible{outline:2px solid var(--mdc-theme-primary, #3f51b5);outline-offset:2px}button.aup-select-list-button:disabled{opacity:.5;cursor:default}.aup-select-list-button__value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aup-select-list-button__arrow{flex:none}.aup-select-list-field,.aup-select-list-field__arrow{cursor:pointer}.aup-select-option{display:flex;align-items:center;gap:16px}.aup-select-option__icon{flex:none;opacity:.7}.aup-select-option__label{flex:1;min-width:0}.aup-select-option__count{flex:none;font-size:.85em;opacity:.7}.aup-select-option__count.zero{opacity:.4}::ng-deep .mat-mdc-option:has(>.mdc-list-item__primary-text>.aup-select-option) .mdc-list-item__primary-text{flex:1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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$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: "component", type: i5$1.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "directive", type: i5$1.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { 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: "directive", type: SelectOverlayOriginDirective, selector: "[aupSelectOverlayOrigin]" }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
3781
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SelectInputComponent, selector: "aup-select-input", inputs: { options$: "options$", options: "options", optionLabel: "optionLabel", allowNil$: "allowNil$", allowNil: "allowNil", appearance: "appearance", opens: "opens", listTitle: "listTitle", optionIcon: "optionIcon", optionCounts: "optionCounts", optionLabelFormat: "optionLabelFormat", searchable: "searchable", searchPlaceholder: "searchPlaceholder", noResultsText: "noResultsText", searchText$: "searchText$", optionSearchText: "optionSearchText", filterFactory: "filterFactory" }, host: { properties: { "class.appearance-button": "this.buttonAppearance" } }, queries: [{ propertyName: "selectedOptionTemplateRef", first: true, predicate: ["selectedOptionTemplate"], descendants: true }, { propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "nilOptionTemplateRef", first: true, predicate: ["nilOptionTemplate"], descendants: true }], viewQueries: [{ propertyName: "searchInputRef", first: true, predicate: ["searchInput"], descendants: true }, { propertyName: "matSelect", first: true, predicate: MatSelect, descendants: true }, { propertyName: "listButtonRef", first: true, predicate: ["listButton"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<!--\nTwo shells, one select. The parts Angular resolves by DECLARATION - mat-select's content queries\nfor <mat-select-trigger> and <mat-option>, mat-form-field's for its control, and the element\ninjector mat-select reads MAT_FORM_FIELD from - do not follow an <ng-template> to where\nngTemplateOutlet inserts it, so the triggers, the nil row and the option list are declared in place\nin each shell. Only the pieces nothing queries are shared: the search box, the no-results row and\nthe footer projection. Keep the two <mat-select> blocks in step; the spec asserts both render the\nsame options and honour the same templates.\n-->\n\n<ng-template #searchBox>\n <div class=\"aup-select-search\" *ngIf=\"searchable\"\n (keydown)=\"onSearchKeydown($event)\"\n (click)=\"$event.stopPropagation()\">\n <aup-icon class=\"aup-select-search__icon\" icon=\"mat:search\"></aup-icon>\n <!--\n Deliberately a bare input: matInput outside a mat-form-field is a MatFormFieldControl with no\n host, and aup-search-input drags in a whole form field (label slot, subscript row,\n .aup-input-component density) that has no business inside a dropdown panel.\n [value]/(input) rather than ngModel avoids a missing-name error inside a host <form>.\n -->\n <input #searchInput type=\"text\" class=\"aup-select-search__input\"\n data-cy=\"select-search\"\n autocomplete=\"off\"\n [placeholder]=\"searchPlaceholderText\"\n [attr.aria-label]=\"searchPlaceholderText\"\n [value]=\"searchText$.value || ''\"\n (input)=\"onSearchInput($event)\">\n <button type=\"button\" class=\"aup-select-search__clear\" tabindex=\"-1\"\n *ngIf=\"searchText$.value\" data-cy=\"select-search-clear\"\n (click)=\"clearSearch()\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n </div>\n</ng-template>\n\n<ng-template #noResults>\n <!--\n A plain div, NOT a mat-option: a mat-option here would be selectable, and would keep\n MatSelect._canOpen() satisfied with a row that means \"nothing\".\n -->\n <div class=\"aup-select-search__no-results\" data-cy=\"select-no-results\"\n *ngIf=\"searchable && noMatches$.value\">{{noResultsMessage}}</div>\n</ng-template>\n\n<!-- Declared once so the projection has one home; stamped into whichever shell renders. -->\n<ng-template #footer>\n <ng-content select=\"[select-option-footer]\"></ng-content>\n</ng-template>\n\n<ng-container *ngIf=\"!buttonAppearance; else buttonShell\">\n<ng-container *ngIf=\"!opensList; else fieldListShell\">\n <mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [panelWidth]=\"fieldPanelWidth\"\n >\n <!--\n TODO: dave has a scenario where the selected item isn't rendering that I can't reproduce so we explicity render it..\n It typically happens because the ngModel value isn't the one contained in the list - this means our source model\n identifyOf function has changed and our id$/lookup$/componentValue$ are out of sync.\n We get around this for now by explicity rendering the component value.\n Please Note: I haven't been able to reproduce this\n -->\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <ng-container [ngTemplateOutlet]=\"searchBox\"></ng-container>\n\n <!--\n Deliberately outside the filter: the nil option is a clear-the-selection affordance, not one of\n the data options, so it stays available while searching (and keeps MatSelect._canOpen() happy).\n -->\n <mat-option *ngIf=\"allowNil$.value\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of panelOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\"\n [disabled]=\"isHiddenOption(option)\"\n [class.aup-select-option--filtered]=\"isHiddenOption(option)\">\n <span *ngIf=\"!optionTemplateRef\" class=\"aup-select-option\">\n <aup-icon *ngIf=\"optionIcon?.(option) as icon\" class=\"aup-select-option__icon\" [icon]=\"icon\"></aup-icon>\n <span class=\"aup-select-option__label\">{{optionLabelFormat(option)}}</span>\n <span *ngIf=\"panelCount(option) !== undefined\" class=\"aup-select-option__count\"\n [class.zero]=\"panelCount(option) === 0\" data-cy=\"count\">{{panelCount(option)}}</span>\n </span>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"></ng-container>\n </mat-option>\n <ng-container [ngTemplateOutlet]=\"noResults\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"footer\"></ng-container>\n </mat-select>\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 </mat-form-field>\n <div class=\"width-strut\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <div class=\"item\" *ngFor=\"let item of cookedOptions$.value\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(item)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: 0 }\"></ng-container>\n </div>\n </div>\n</ng-container>\n</ng-container>\n\n<!--\nA field whose options open as a list: the form field holds a read-only input that names the choice and opens the\nlist, so the label, hint, error and validation icon stay as a field has them.\n-->\n<ng-template #fieldListShell>\n <mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput #listButton readonly class=\"aup-select-list-field\" data-cy=\"select-list-field\"\n role=\"combobox\" aria-haspopup=\"listbox\" [attr.aria-expanded]=\"listOpen\"\n [placeholder]=\"placeholder ?? ''\"\n [value]=\"hasValue ? optionLabelFormat(componentValue$.value) : ''\"\n [disabled]=\"!enabled$.value\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [pectinFocusBinding]=\"focusContext\"\n (click)=\"openList()\"\n (keydown.enter)=\"$event.preventDefault(); openList()\"\n (keydown.space)=\"$event.preventDefault(); openList()\"\n (keydown.arrowdown)=\"$event.preventDefault(); openList()\">\n <aup-icon matSuffix class=\"aup-select-list-field__arrow\" icon=\"mat:arrow_drop_down\"></aup-icon>\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 </mat-form-field>\n</ng-template>\n\n<ng-template #buttonShell>\n <!--\n opens=\"list\": a plain button. The options open as a list activity (see SelectOptionList), so there\n is no mat-select, and nothing here is queried by declaration.\n -->\n <button *ngIf=\"opensList; else panelButton\" #listButton type=\"button\"\n class=\"aup-select-button aup-select-list-button\" data-cy=\"select-button\"\n aria-haspopup=\"listbox\" [attr.aria-expanded]=\"listOpen\"\n [disabled]=\"!enabled$.value\"\n [pectinFocusBinding]=\"focusContext\"\n (click)=\"openList()\"\n (keydown.arrowdown)=\"$event.preventDefault(); openList()\">\n <span class=\"aup-select-list-button__value\">\n <ng-container *ngIf=\"!hasValue\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"hasValue && !selectedOptionTemplateRef\">{{optionLabelFormat(componentValue$.value)}}</ng-container>\n <ng-container *ngIf=\"hasValue && selectedOptionTemplateRef\"\n [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </span>\n <aup-icon class=\"aup-select-list-button__arrow\" icon=\"mat:arrow_drop_down\"></aup-icon>\n </button>\n</ng-template>\n\n<ng-template #panelButton>\n <!--\n The box is a WRAPPER around the select, not the select's own element, and it provides\n MAT_FORM_FIELD: mat-select anchors its panel to the form field's origin, and without one falls\n back to its inner trigger div - which sits inside the box's padding, so the panel would open a\n padding's width in from the box's edge. See SelectOverlayOriginDirective. No width strut: a\n button that stretches to its longest option is not a button; the panel, sized to content by the\n null panelWidth, carries the long text instead.\n -->\n <span class=\"aup-select-button\" aupSelectOverlayOrigin data-cy=\"select-button\">\n <mat-select placeholder=\"{{placeholder}}\"\n [ngModel]=\"componentValue$.value\"\n (ngModelChange)=\"select($event)\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [panelWidth]=\"null\"\n panelClass=\"aup-select-button-panel\"\n >\n <mat-select-trigger *ngIf=\"!selectedOptionTemplateRef\">\n {{optionLabelFormat(componentValue$.value)}}\n </mat-select-trigger>\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <ng-container [ngTemplateOutlet]=\"searchBox\"></ng-container>\n\n <mat-option *ngIf=\"allowNil$.value\">\n <ng-container *ngIf=\"!nilOptionTemplateRef\">{{placeholder}}</ng-container>\n <ng-container *ngIf=\"nilOptionTemplateRef\" [ngTemplateOutlet]=\"nilOptionTemplateRef\"></ng-container>\n </mat-option>\n <mat-option *ngFor=\"let option of panelOptions$.value; trackBy: trackByIdentity;let i = index\"\n [value]=\"option\"\n [disabled]=\"isHiddenOption(option)\"\n [class.aup-select-option--filtered]=\"isHiddenOption(option)\">\n <span *ngIf=\"!optionTemplateRef\" class=\"aup-select-option\">\n <aup-icon *ngIf=\"optionIcon?.(option) as icon\" class=\"aup-select-option__icon\" [icon]=\"icon\"></aup-icon>\n <span class=\"aup-select-option__label\">{{optionLabelFormat(option)}}</span>\n <span *ngIf=\"panelCount(option) !== undefined\" class=\"aup-select-option__count\"\n [class.zero]=\"panelCount(option) === 0\" data-cy=\"count\">{{panelCount(option)}}</span>\n </span>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"></ng-container>\n </mat-option>\n <ng-container [ngTemplateOutlet]=\"noResults\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"footer\"></ng-container>\n </mat-select>\n </span>\n</ng-template>\n", styles: [":host{display:inline-block}mat-form-field{width:100%}.width-strut{display:block;height:0;max-height:0;width:auto;visibility:hidden;overflow:hidden;padding-right:35px;white-space:nowrap}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}.aup-select-search{position:sticky;top:-8px;z-index:1;display:flex;align-items:center;gap:4px;margin:-8px 0 4px;padding:8px 12px;background:var(--mat-select-panel-background-color, #fff);border-bottom:1px solid rgba(0,0,0,.12)}.aup-select-search .aup-select-search__input{flex:1 1 auto;min-width:0;border:none;outline:none;background:transparent;font:inherit;color:inherit}.aup-select-search .aup-select-search__clear{flex:0 0 auto;display:inline-flex;padding:0;border:none;background:transparent;cursor:pointer;color:inherit}.aup-select-search__no-results{padding:8px 16px;opacity:.6;font-style:italic}mat-option.aup-select-option--filtered{display:none}:host(.appearance-button){display:inline-flex}.aup-select-button{display:inline-flex;align-items:center;align-self:flex-start;box-sizing:border-box;min-width:10rem;height:36px;padding:0 12px;border:1px solid rgba(0,0,0,.24);border-radius:4px;background:var(--mat-select-panel-background-color, #fff);cursor:pointer}.aup-select-button:has(mat-select:focus-visible){outline:2px solid var(--mdc-theme-primary, #3f51b5);outline-offset:2px}.aup-select-button:has(.mat-mdc-select-disabled){opacity:.5;cursor:default}.aup-select-button>mat-select{width:100%}button.aup-select-list-button{gap:4px;padding-right:4px;font:inherit;color:inherit;text-align:left}button.aup-select-list-button:focus-visible{outline:2px solid var(--mdc-theme-primary, #3f51b5);outline-offset:2px}button.aup-select-list-button:disabled{opacity:.5;cursor:default}.aup-select-list-button__value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aup-select-list-button__arrow{flex:none}.aup-select-list-field,.aup-select-list-field__arrow{cursor:pointer}.aup-select-option{display:flex;align-items:center;gap:16px}.aup-select-option__icon{flex:none;opacity:.7}.aup-select-option__label{flex:1;min-width:0}.aup-select-option__count{flex:none;font-size:.85em;opacity:.7}.aup-select-option__count.zero{opacity:.4}::ng-deep .mat-mdc-option:has(>.mdc-list-item__primary-text>.aup-select-option) .mdc-list-item__primary-text{flex:1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.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$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i5$1.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "directive", type: i5$1.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { 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: "directive", type: SelectOverlayOriginDirective, selector: "[aupSelectOverlayOrigin]" }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
3791
3782
|
}
|
|
3792
3783
|
__decorate([
|
|
3793
3784
|
Proxify(),
|
|
@@ -3900,7 +3891,7 @@ class StringInputComponent extends AbstractValueInputComponent {
|
|
|
3900
3891
|
this.elementRef.nativeElement.querySelector('input').select();
|
|
3901
3892
|
}
|
|
3902
3893
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: StringInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3903
|
-
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$
|
|
3894
|
+
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$4.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$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.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$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4$1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4$1.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"] }] });
|
|
3904
3895
|
}
|
|
3905
3896
|
__decorate([
|
|
3906
3897
|
Proxify(),
|
|
@@ -4635,7 +4626,7 @@ class SubFormListComponent extends DisposableComponent {
|
|
|
4635
4626
|
}
|
|
4636
4627
|
}
|
|
4637
4628
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SubFormListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4638
|
-
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" }] });
|
|
4629
|
+
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$6.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$6.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$6.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" }] });
|
|
4639
4630
|
}
|
|
4640
4631
|
__decorate([
|
|
4641
4632
|
Proxify(),
|
|
@@ -4818,7 +4809,7 @@ class TextInputComponent extends AbstractValueInputComponent {
|
|
|
4818
4809
|
this.elementRef.nativeElement.querySelector('input').select();
|
|
4819
4810
|
}
|
|
4820
4811
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TextInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4821
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TextInputComponent, selector: "aup-text-input", inputs: { rows: "rows", cols: "cols" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n >\n </textarea>\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</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}\n"], 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$
|
|
4812
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TextInputComponent, selector: "aup-text-input", inputs: { rows: "rows", cols: "cols" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" subscriptSizing=\"dynamic\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"componentValue$.value\"\n [disabled]=\"!enabled$.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n >\n </textarea>\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</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}\n"], 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$4.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$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.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$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4$1.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"] }] });
|
|
4822
4813
|
}
|
|
4823
4814
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TextInputComponent, decorators: [{
|
|
4824
4815
|
type: Component,
|
|
@@ -4863,7 +4854,7 @@ class LoadingContainerComponent extends GarbageCollector {
|
|
|
4863
4854
|
return this.loading$.value ? "loaded" : "loading";
|
|
4864
4855
|
}
|
|
4865
4856
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: LoadingContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4866
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: LoadingContainerComponent, selector: "aup-loading-container", inputs: { loading$: "loading$", loading: "loading", message$: "message$", message: "message" }, host: { properties: { "class": "this.state" } }, usesInheritance: true, ngImport: i0, template: "<ng-content *ngIf=\"!loading$.value\"></ng-content>\n<section *ngIf=\"loading$.value\" class=\"loading-indicator-overlay\">\n <div class=\"loading-message\">\n <p>{{message$.value}}</p>\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n </div>\n</section>\n", styles: [":host{display:block;position:relative}section.loading-indicator-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-message{display:inline-block;text-align:center;width:10em}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$
|
|
4857
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: LoadingContainerComponent, selector: "aup-loading-container", inputs: { loading$: "loading$", loading: "loading", message$: "message$", message: "message" }, host: { properties: { "class": "this.state" } }, usesInheritance: true, ngImport: i0, template: "<ng-content *ngIf=\"!loading$.value\"></ng-content>\n<section *ngIf=\"loading$.value\" class=\"loading-indicator-overlay\">\n <div class=\"loading-message\">\n <p>{{message$.value}}</p>\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n </div>\n</section>\n", styles: [":host{display:block;position:relative}section.loading-indicator-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-message{display:inline-block;text-align:center;width:10em}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$7.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
|
|
4867
4858
|
}
|
|
4868
4859
|
__decorate([
|
|
4869
4860
|
Proxify(),
|
|
@@ -5726,7 +5717,7 @@ class PaginatorComponent extends DisposableComponent {
|
|
|
5726
5717
|
return this.pageController.nextCommand;
|
|
5727
5718
|
}
|
|
5728
5719
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PaginatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5729
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PaginatorComponent, selector: "aup-paginator", inputs: { pageController: "pageController" }, usesInheritance: true, ngImport: i0, template: "<p>Showing {{firstItem}}\u2013{{lastItem}} of {{totalItems}}<span class=\"spacer\"></span>Page {{pageNumber}} of {{totalPages}}</p>\n<button mat-icon-button [pectinCommand]=\"previousCommand\"><aup-icon icon=\"mat:keyboard_arrow_left\"></aup-icon></button>\n<button mat-icon-button [pectinCommand]=\"nextCommand\"><aup-icon icon=\"mat:keyboard_arrow_right\"></aup-icon></button>\n", styles: [":host{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px;padding:0 8px;color:#0009}:host p{color:inherit;margin:0 8px 0 0}:host span.spacer{padding:0 calc(var(--default-padding) / 2)}:host span.spacer:before{content:\"|\";opacity:.35}:host button.md-button.md-icon-button{padding:0;margin:0;width:30px;height:30px}\n"], dependencies: [{ kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"
|
|
5720
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PaginatorComponent, selector: "aup-paginator", inputs: { pageController: "pageController" }, usesInheritance: true, ngImport: i0, template: "<p>Showing {{firstItem}}\u2013{{lastItem}} of {{totalItems}}<span class=\"spacer\"></span>Page {{pageNumber}} of {{totalPages}}</p>\n<button mat-icon-button [pectinCommand]=\"previousCommand\"><aup-icon icon=\"mat:keyboard_arrow_left\"></aup-icon></button>\n<button mat-icon-button [pectinCommand]=\"nextCommand\"><aup-icon icon=\"mat:keyboard_arrow_right\"></aup-icon></button>\n", styles: [":host{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px;padding:0 8px;color:#0009}:host p{color:inherit;margin:0 8px 0 0}:host span.spacer{padding:0 calc(var(--default-padding) / 2)}:host span.spacer:before{content:\"|\";opacity:.35}:host button.md-button.md-icon-button{padding:0;margin:0;width:30px;height:30px}\n"], dependencies: [{ kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
5730
5721
|
}
|
|
5731
5722
|
__decorate([
|
|
5732
5723
|
Proxify(),
|
|
@@ -5805,7 +5796,7 @@ class SelectionHeaderCellComponent extends DisposableComponent {
|
|
|
5805
5796
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectionHeaderCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5806
5797
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SelectionHeaderCellComponent, selector: "aup-selection-header-cell", providers: [
|
|
5807
5798
|
{ provide: MAT_CHECKBOX_DEFAULT_OPTIONS, useValue: { clickAction: 'noop' } }
|
|
5808
|
-
], usesInheritance: true, ngImport: i0, template: "<mat-checkbox *ngIf=\"isVisible()\"\n (click)=\"handleClick($event)\"\n [checked]=\"isSelected()\"\n [indeterminate]=\"this.isIntermediate()\"\n [disabled]=\"isDisabled()\"\n [color]=\"color\"\n></mat-checkbox>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$
|
|
5799
|
+
], usesInheritance: true, ngImport: i0, template: "<mat-checkbox *ngIf=\"isVisible()\"\n (click)=\"handleClick($event)\"\n [checked]=\"isSelected()\"\n [indeterminate]=\"this.isIntermediate()\"\n [disabled]=\"isDisabled()\"\n [color]=\"color\"\n></mat-checkbox>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$5.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
|
|
5809
5800
|
}
|
|
5810
5801
|
__decorate([
|
|
5811
5802
|
Proxify(),
|
|
@@ -5850,7 +5841,7 @@ class SelectionCellComponent extends DisposableComponent {
|
|
|
5850
5841
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectionCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5851
5842
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SelectionCellComponent, selector: "aup-selection-cell", inputs: { row: "row" }, providers: [
|
|
5852
5843
|
{ provide: MAT_CHECKBOX_DEFAULT_OPTIONS, useValue: { clickAction: 'noop' } }
|
|
5853
|
-
], usesInheritance: true, ngImport: i0, template: "<mat-checkbox *ngIf=\"isSelectable()\" (click)=\"select($event)\" [checked]=\"isSelected()\" [color]=\"color\"></mat-checkbox>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$
|
|
5844
|
+
], usesInheritance: true, ngImport: i0, template: "<mat-checkbox *ngIf=\"isSelectable()\" (click)=\"select($event)\" [checked]=\"isSelected()\" [color]=\"color\"></mat-checkbox>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$5.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
|
|
5854
5845
|
}
|
|
5855
5846
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SelectionCellComponent, decorators: [{
|
|
5856
5847
|
type: Component,
|
|
@@ -6687,7 +6678,7 @@ class TableCustomMoreMenuComponent extends DisposableComponent {
|
|
|
6687
6678
|
return this._visible$.readonly$;
|
|
6688
6679
|
}
|
|
6689
6680
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableCustomMoreMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6690
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableCustomMoreMenuComponent, selector: "aup-table-custom-more-menu", host: { listeners: { "click": "preventDefault($event)" } }, viewQueries: [{ propertyName: "matMenuTrigger", first: true, predicate: MatMenuTrigger, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-menu #menu=\"matMenu\" xPosition=\"before\">\n <ng-template matMenuContent [cdkPortalOutlet]=\"popupComponentPortal$.value\" (attached)=\"initialise($event)\"></ng-template>\n</mat-menu>\n\n<button mat-icon-button [matMenuTriggerFor]=\"menu\" data-cy=\"more-menu-trigger\" *ngIf=\"visible$.value\">\n <aup-icon icon=\"mat:more_vert\"></aup-icon>\n</button>\n", styles: [":host{display:inline;text-align:end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i1$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type:
|
|
6681
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableCustomMoreMenuComponent, selector: "aup-table-custom-more-menu", host: { listeners: { "click": "preventDefault($event)" } }, viewQueries: [{ propertyName: "matMenuTrigger", first: true, predicate: MatMenuTrigger, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-menu #menu=\"matMenu\" xPosition=\"before\">\n <ng-template matMenuContent [cdkPortalOutlet]=\"popupComponentPortal$.value\" (attached)=\"initialise($event)\"></ng-template>\n</mat-menu>\n\n<button mat-icon-button [matMenuTriggerFor]=\"menu\" data-cy=\"more-menu-trigger\" *ngIf=\"visible$.value\">\n <aup-icon icon=\"mat:more_vert\"></aup-icon>\n</button>\n", styles: [":host{display:inline;text-align:end}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i1$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: i4.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "directive", type: i4.MatMenuContent, selector: "ng-template[matMenuContent]" }, { kind: "directive", type: i4.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
6691
6682
|
}
|
|
6692
6683
|
__decorate([
|
|
6693
6684
|
StoreInValueModel(),
|
|
@@ -7428,7 +7419,7 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
7428
7419
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableBodyComponent, deps: [{ token: AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
7429
7420
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableBodyComponent, selector: "aup-table-body", inputs: { data$: "data$", tableModel: "tableModel", footerRows: "footerRows", showHeader$: "showHeader$", showHeader: "showHeader", trackBy: "trackBy", scrollMode$: "scrollMode$", scrollMode: "scrollMode" }, host: { properties: { "attr.scrollMode": "this.scrollMode", "class": "this.baseCssClass", "class.aup-animations-disabled": "this.animationsDisabledClass", "class.hide-header": "this.hideHeader", "style.--aup-table-header-height": "this.headerHeightCssVar", "style.--aup-table-row-height": "this.rowHeightCssVar" } }, providers: [
|
|
7430
7421
|
{ provide: AUP_DETACHED_PARENT_CDR, useFactory: () => inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true }) ? inject(ChangeDetectorRef) : null }
|
|
7431
|
-
], viewQueries: [{ propertyName: "scrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }], usesInheritance: true, ngImport: i0, template: "\n<div class=\"classic-scroll-container\" *ngIf=\"scrollMode$.value !== 'virtual'\">\n <table mat-table [dataSource]=\"data$.value\" [trackBy]=\"trackBy\" [multiTemplateDataRows]>\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"$any(column)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n </table>\n</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\"\n [@.disabled]=\"animationsDisabled$.value\"\n [tvsItemSize]=\"rowHeight$.value\"\n [headerHeight]=\"headerHeight$.value\"\n [footerEnabled]=\"(footerRowDefs$?.value?.length ?? 0) > 0\"\n [footerHeight]=\"48 * (footerRowDefs$?.value?.length ?? 0)\"\n [bufferMultiplier]=\"bufferMultiplier\"\n>\n <table mat-table [dataSource]=\"virtualScrollDataSource\" [trackBy]=\"trackBy\">\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n\n </table>\n</cdk-virtual-scroll-viewport>\n\n", styles: [":host{--enter-animation-duration: .1s;display:flex;flex-direction:column;align-items:stretch}:host.aup-animations-disabled{--enter-animation-duration: 0ms}:host table{width:100%}:host tr.aup-footer-row-hidden{display:none}:host td.footer-cell{border-top:0!important;box-shadow:0 -1px 0 0 var(--mat-table-row-item-outline-color, rgba(0, 0, 0, .12))}:host[scrollMode=virtual] cdk-virtual-scroll-viewport{flex:1}:host[scrollMode=virtual] table th{height:var(--aup-table-header-height);max-height:var(--aup-table-header-height);min-height:var(--aup-table-header-height)}:host[scrollMode=virtual] table td{height:var(--aup-table-row-height);max-height:var(--aup-table-row-height);min-height:var(--aup-table-row-height)}:host[scrollMode=classic]{min-height:0}:host[scrollMode=classic] .classic-scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: i2$
|
|
7422
|
+
], viewQueries: [{ propertyName: "scrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }], usesInheritance: true, ngImport: i0, template: "\n<div class=\"classic-scroll-container\" *ngIf=\"scrollMode$.value !== 'virtual'\">\n <table mat-table [dataSource]=\"data$.value\" [trackBy]=\"trackBy\" [multiTemplateDataRows]>\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"$any(column)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n </table>\n</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\"\n [@.disabled]=\"animationsDisabled$.value\"\n [tvsItemSize]=\"rowHeight$.value\"\n [headerHeight]=\"headerHeight$.value\"\n [footerEnabled]=\"(footerRowDefs$?.value?.length ?? 0) > 0\"\n [footerHeight]=\"48 * (footerRowDefs$?.value?.length ?? 0)\"\n [bufferMultiplier]=\"bufferMultiplier\"\n>\n <table mat-table [dataSource]=\"virtualScrollDataSource\" [trackBy]=\"trackBy\">\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n\n </table>\n</cdk-virtual-scroll-viewport>\n\n", styles: [":host{--enter-animation-duration: .1s;display:flex;flex-direction:column;align-items:stretch}:host.aup-animations-disabled{--enter-animation-duration: 0ms}:host table{width:100%}:host tr.aup-footer-row-hidden{display:none}:host td.footer-cell{border-top:0!important;box-shadow:0 -1px 0 0 var(--mat-table-row-item-outline-color, rgba(0, 0, 0, .12))}:host[scrollMode=virtual] cdk-virtual-scroll-viewport{flex:1}:host[scrollMode=virtual] table th{height:var(--aup-table-header-height);max-height:var(--aup-table-header-height);min-height:var(--aup-table-header-height)}:host[scrollMode=virtual] table td{height:var(--aup-table-row-height);max-height:var(--aup-table-row-height);min-height:var(--aup-table-row-height)}:host[scrollMode=classic]{min-height:0}:host[scrollMode=classic] .classic-scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: i2$8.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2$8.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2$8.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2$8.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i2$8.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2$8.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i2$8.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i2$8.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i2$8.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$8.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i2$8.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i2$8.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2$8.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i2$8.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "component", type: i1$2.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: i4$2.TableItemSizeDirective, selector: "cdk-virtual-scroll-viewport[tvsItemSize]", inputs: ["tvsItemSize", "headerEnabled", "headerHeight", "footerEnabled", "footerHeight", "bufferMultiplier"] }, { kind: "directive", type: TableRowAttributesDirective, selector: "[aupTableRowAttributes]", inputs: ["aupTableRowAttributes"] }, { kind: "component", type: TableCellComponent, selector: "aup-table-cell", inputs: ["row", "column", "tableModel"] }, { kind: "component", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: ["column"] }, { kind: "component", type: TableFooterRow, selector: "aup-table-footer-row", inputs: ["cell"] }] });
|
|
7432
7423
|
}
|
|
7433
7424
|
__decorate([
|
|
7434
7425
|
Proxify(),
|
|
@@ -12542,6 +12533,7 @@ class ActivityRef {
|
|
|
12542
12533
|
_complete = false;
|
|
12543
12534
|
_activity;
|
|
12544
12535
|
deferredResult = Deferred.defer();
|
|
12536
|
+
destroyed = Deferred.defer();
|
|
12545
12537
|
focusedModel = new MutableValueModel();
|
|
12546
12538
|
_activityBusy = new DelegatingValueModel().withDefault(false);
|
|
12547
12539
|
constructor(activityClass, activityData, onComplete) {
|
|
@@ -12601,6 +12593,18 @@ class ActivityRef {
|
|
|
12601
12593
|
get activityBusy() {
|
|
12602
12594
|
return this._activityBusy.readonly$;
|
|
12603
12595
|
}
|
|
12596
|
+
/**
|
|
12597
|
+
* Resolves once the activity's component has been destroyed. The result settles first, and the
|
|
12598
|
+
* component can stay on the page after it, as a slide-down's activity does while the slide-down
|
|
12599
|
+
* closes. So the models an activity reads are disposed after this, not after the result.
|
|
12600
|
+
*/
|
|
12601
|
+
get whenDestroyed() {
|
|
12602
|
+
return this.destroyed.promise;
|
|
12603
|
+
}
|
|
12604
|
+
/** The outlet calls this once it has destroyed the activity's component. */
|
|
12605
|
+
notifyActivityDestroyed() {
|
|
12606
|
+
this.destroyed.resolve();
|
|
12607
|
+
}
|
|
12604
12608
|
}
|
|
12605
12609
|
|
|
12606
12610
|
const INTERACTION_CONTEXT = new InjectionToken('interactionContext');
|
|
@@ -12676,6 +12680,7 @@ class ActivityOutletComponent {
|
|
|
12676
12680
|
parent: this.injector
|
|
12677
12681
|
});
|
|
12678
12682
|
this.activityComponentRef = this.viewContainerRef.createComponent(activityRef.activityClass, { index: 0, injector });
|
|
12683
|
+
this.activityComponentRef.onDestroy(() => activityRef.notifyActivityDestroyed());
|
|
12679
12684
|
activityContext.init(this.activityComponentRef.instance);
|
|
12680
12685
|
this.activityRef.notifyActivityCreated(this.activityComponentRef.instance, this.nestedInteractionContext);
|
|
12681
12686
|
}
|
|
@@ -12865,6 +12870,14 @@ class ActivityContainerComponent extends AbstractInteractionContext {
|
|
|
12865
12870
|
this._deferredCleanUp :
|
|
12866
12871
|
true;
|
|
12867
12872
|
}
|
|
12873
|
+
/**
|
|
12874
|
+
* Resolves once every activity the container holds has been destroyed, the finished ones included.
|
|
12875
|
+
* An activity's result settles before its component leaves the page, so an owner disposes the
|
|
12876
|
+
* models it gave the activity after this, not after the result.
|
|
12877
|
+
*/
|
|
12878
|
+
whenClosed() {
|
|
12879
|
+
return Promise.all(this.activityRefs.map(ref => ref.whenDestroyed)).then(() => undefined);
|
|
12880
|
+
}
|
|
12868
12881
|
/**
|
|
12869
12882
|
* Register a one-shot callback invoked the moment the container has no active activity left
|
|
12870
12883
|
* (the last activity completed via done()/cancel()). It fires BEFORE route synchronisation, so
|
|
@@ -13529,7 +13542,7 @@ class AddCardActivityComponent extends AbstractActivityTriggerComponent {
|
|
|
13529
13542
|
return this.interactionStyle === 'inline';
|
|
13530
13543
|
}
|
|
13531
13544
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AddCardActivityComponent, deps: [{ token: InteractionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
13532
|
-
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"
|
|
13545
|
+
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: ["opensChoicesAs", "animateFirstActivity", "syncWithRoutes"], outputs: ["started", "finished"] }] });
|
|
13533
13546
|
}
|
|
13534
13547
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AddCardActivityComponent, decorators: [{
|
|
13535
13548
|
type: Component,
|
|
@@ -13605,7 +13618,7 @@ class AddItemInteractionContextComponent extends DisposableComponent {
|
|
|
13605
13618
|
return this.interactionContext.startActivity(activityType, data);
|
|
13606
13619
|
}
|
|
13607
13620
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AddItemInteractionContextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13608
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AddItemInteractionContextComponent, selector: "aup-add-item-interaction-context", inputs: { label: "label", icon: "icon", activityClass: "activityClass", activityData: "activityData", addCommand: "addCommand" }, host: { properties: { "class.interaction-active": "this.active", "tabindex": "this.tabindex" } }, viewQueries: [{ propertyName: "interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\">\n <a part=\"link\" class=\"link\" [pectinCommand]=\"clickCommand\"><aup-icon [icon]=\"icon\"></aup-icon> {{label}}</a>\n</aup-in-place-interaction-context>\n", styles: [":host{--def-link-color: var(--link-color, currentColor);--def-link-color-hover: var(--link-color-hover, currentColor);--def-link-background: var(--link-background, transparent);--def-link-background-hover: var(--link-background-hover, rgba(0, 0, 0, .05));--def-link-border-radius: var(--link-border-radius, 4px);--def-link-padding: var(--link-padding, calc(var(--aup-default-padding) / 2));display:flex;flex-direction:column;border-radius:var(--def-link-border-radius);box-sizing:border-box;outline:none}:host:hover a.link{color:var(--def-link-color-hover);background-color:var(--def-link-background-hover)}aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;border-radius:var(--def-link-border-radius);color:var(--def-link-color);background:var(--def-link-background);padding:var(--def-link-padding);cursor:pointer;text-decoration:none}a.link mat-icon{margin-right:8px}\n"], dependencies: [{ kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"
|
|
13621
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: AddItemInteractionContextComponent, selector: "aup-add-item-interaction-context", inputs: { label: "label", icon: "icon", activityClass: "activityClass", activityData: "activityData", addCommand: "addCommand" }, host: { properties: { "class.interaction-active": "this.active", "tabindex": "this.tabindex" } }, viewQueries: [{ propertyName: "interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\">\n <a part=\"link\" class=\"link\" [pectinCommand]=\"clickCommand\"><aup-icon [icon]=\"icon\"></aup-icon> {{label}}</a>\n</aup-in-place-interaction-context>\n", styles: [":host{--def-link-color: var(--link-color, currentColor);--def-link-color-hover: var(--link-color-hover, currentColor);--def-link-background: var(--link-background, transparent);--def-link-background-hover: var(--link-background-hover, rgba(0, 0, 0, .05));--def-link-border-radius: var(--link-border-radius, 4px);--def-link-padding: var(--link-padding, calc(var(--aup-default-padding) / 2));display:flex;flex-direction:column;border-radius:var(--def-link-border-radius);box-sizing:border-box;outline:none}:host:hover a.link{color:var(--def-link-color-hover);background-color:var(--def-link-background-hover)}aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;border-radius:var(--def-link-border-radius);color:var(--def-link-color);background:var(--def-link-background);padding:var(--def-link-padding);cursor:pointer;text-decoration:none}a.link mat-icon{margin-right:8px}\n"], dependencies: [{ kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["opensChoicesAs", "animateFirstActivity", "syncWithRoutes"], outputs: ["started", "finished"] }] });
|
|
13609
13622
|
}
|
|
13610
13623
|
__decorate([
|
|
13611
13624
|
Proxify(),
|
|
@@ -13975,7 +13988,7 @@ class InlineStringEditorComponent extends DisposableComponent {
|
|
|
13975
13988
|
return !this.editingEnabled$.value;
|
|
13976
13989
|
}
|
|
13977
13990
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: InlineStringEditorComponent, deps: [{ token: InteractionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
13978
|
-
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$
|
|
13991
|
+
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$4.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$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.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$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "component", type: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["opensChoicesAs", "animateFirstActivity", "syncWithRoutes"], outputs: ["started", "finished"] }] });
|
|
13979
13992
|
}
|
|
13980
13993
|
__decorate([
|
|
13981
13994
|
Proxify(),
|
|
@@ -14471,6 +14484,14 @@ class SlideDownInteractionContextComponent extends DisposableComponent {
|
|
|
14471
14484
|
startActivity(activityType, data, options) {
|
|
14472
14485
|
return this.activityContainerComponent.startActivity(activityType, data, options);
|
|
14473
14486
|
}
|
|
14487
|
+
/**
|
|
14488
|
+
* Resolves once the slide-down's activities have left the page. An activity's result settles while
|
|
14489
|
+
* it is still shown, as the slide-down closes, so models given to it are disposed after this:
|
|
14490
|
+
* `try { await slideDown.startActivity(...) } finally { slideDown.whenClosed().then(() => garbage.dispose()) }`.
|
|
14491
|
+
*/
|
|
14492
|
+
whenClosed() {
|
|
14493
|
+
return this.activityContainerComponent.whenClosed();
|
|
14494
|
+
}
|
|
14474
14495
|
onAnimationDone() {
|
|
14475
14496
|
if (!this.isActive()) {
|
|
14476
14497
|
this.clampShut = true;
|
|
@@ -15590,7 +15611,7 @@ class ListPlaceNavComponent extends AbstractPlaceNavigationComponent {
|
|
|
15590
15611
|
super(router);
|
|
15591
15612
|
}
|
|
15592
15613
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ListPlaceNavComponent, deps: [{ token: PlaceRouter }], target: i0.ɵɵFactoryTarget.Component });
|
|
15593
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ListPlaceNavComponent, selector: "aup-list-place-nav", usesInheritance: true, ngImport: i0, template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n aup-gc #gc=\"aup-gc\"\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [class.active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\"\n [attr.data-cy]=\"item.place.path\"\n >\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n</mat-nav-list>\n", styles: [":host{display:flex;flex-direction:column;--selected-border-color: #838383;--selected-color: inherit;--selected-background: #f1f1f1}mat-nav-list{padding-top:0}a{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$3.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i3$3.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"
|
|
15614
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ListPlaceNavComponent, selector: "aup-list-place-nav", usesInheritance: true, ngImport: i0, template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n aup-gc #gc=\"aup-gc\"\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [class.active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\"\n [attr.data-cy]=\"item.place.path\"\n >\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n</mat-nav-list>\n", styles: [":host{display:flex;flex-direction:column;--selected-border-color: #838383;--selected-color: inherit;--selected-background: #f1f1f1}mat-nav-list{padding-top:0}a{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$3.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i3$3.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "directive", type: GarbageCollectorDirective, selector: "[aup-gc]", exportAs: ["aup-gc"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }] });
|
|
15594
15615
|
}
|
|
15595
15616
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ListPlaceNavComponent, decorators: [{
|
|
15596
15617
|
type: Component,
|
|
@@ -16099,7 +16120,7 @@ class TabbedPlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
|
16099
16120
|
}, { initialValue: "triggerChange" });
|
|
16100
16121
|
}
|
|
16101
16122
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TabbedPlaceNavigationComponent, deps: [{ token: PlaceRouter }], target: i0.ɵɵFactoryTarget.Component });
|
|
16102
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TabbedPlaceNavigationComponent, selector: "aup-tabbed-place-navigation", inputs: { appearance: "appearance" }, host: { properties: { "attr.appearance": "this.appearance", "@.disabled": "this.animationsDisabled" } }, usesInheritance: true, ngImport: i0, template: "<!-- Declared BEFORE the nav that references it: the nav lives in an *ngIf embedded view, and a\n template ref declared after it can be unresolved on that view's first render. -->\n<mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>\n<!-- Tabs keep their natural width, packed to the left; Material stretches them to fill by default. -->\n<nav mat-tab-nav-bar [mat-stretch-tabs]=\"false\" [tabPanel]=\"tabPanel\"\n *ngIf=\"!hidden$.value\" [@slideDownOnEnter]>\n <ng-content select=\"[nav-start]\"></ng-content>\n <a mat-tab-link *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n aup-gc #gc=\"aup-gc\"\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n <ng-content select=\"[nav-end]\"></ng-content>\n</nav>\n", styles: [":host{display:block}nav{overflow:hidden}:host([appearance=folder]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mdc-secondary-navigation-tab-container-height: 38px;background:var(--aup-tab-nav-bar-background, #fff);padding-top:6px;padding-left:var(--aup-tab-nav-inset, 8px);box-shadow:inset 0 -1px 0 var(--aup-tab-nav-edge-color, var(--pinstripe-border-color, rgba(0, 0, 0, .2)))}:host([appearance=folder]) .mat-mdc-tab-link{position:relative;min-width:0;padding:0 12px var(--aup-tab-nav-label-padding-bottom, 0);margin-right:2px;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;transition:background-color .12s linear}:host([appearance=folder]) .mat-mdc-tab-link:has(aup-icon){padding-bottom:var(--aup-tab-nav-label-padding-bottom, 8px)}:host([appearance=folder]) .mat-mdc-tab-link:hover:not(.mdc-tab--active){background-color:var(--aup-tab-nav-hover-background, rgba(63, 81, 181, .07))}:host([appearance=folder]) .mat-mdc-tab-link.mdc-tab--active{background-color:var(--aup-tab-nav-page-background, var(--aup-default-background, #fff));border-color:var(--aup-tab-nav-edge-color, var(--pinstripe-border-color, rgba(0, 0, 0, .2)));font-weight:700}:host([appearance=folder]) .mat-mdc-tab-link.mdc-tab--active:after{content:\"\";position:absolute;inset:-1px -1px 0;border-radius:10px 10px 0 0;background:linear-gradient(var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)) 0 var(--aup-tab-nav-top-line-width, 2px),transparent 0);pointer-events:none}:host([appearance=folder]) ::ng-deep .mdc-tab-indicator{display:none}:host([appearance=folder]) ::ng-deep .mdc-tab__content{height:100%}:host([appearance=folder]) ::ng-deep .mdc-tab__ripple,:host([appearance=folder]) ::ng-deep .mat-mdc-tab-ripple{display:none}:host([appearance=segmented]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));margin:var(--aup-tab-nav-segmented-padding, 12px 12px 4px);--mdc-secondary-navigation-tab-container-height: 26px;display:inline-flex;max-width:100%;padding:3px;border:1px solid var(--aup-tab-nav-segment-border-color, #d9dce2);border-radius:9px;background:var(--aup-tab-nav-segment-track-background, var(--aup-tab-nav-bar-background, #f0f2f5))}:host([appearance=segmented]) .mat-mdc-tab-link{min-width:0;padding:0 12px;border-radius:6px;font-size:13px}:host([appearance=segmented]) .mat-mdc-tab-link+.mat-mdc-tab-link{margin-left:2px}:host([appearance=segmented]) .mat-mdc-tab-link.mdc-tab--active{font-weight:700}:host([appearance=segmented]) ::ng-deep .mdc-tab-indicator__content--underline{align-self:stretch;height:100%;border:0;border-radius:6px;background:var(--aup-tab-nav-segment-selected-background, #fff);box-shadow:0 1px 2px #00000024,0 1px 4px #0000000f}:host([appearance=segmented]) ::ng-deep .mdc-tab__ripple,:host([appearance=segmented]) ::ng-deep .mat-mdc-tab-ripple{display:none}:host([appearance=tonal]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));padding:var(--aup-tab-nav-tonal-padding, 8px 12px);background:var(--aup-tab-nav-page-background, var(--aup-default-background, #fff));border-bottom:1px solid var(--aup-tab-nav-underline-color, #d9dce2);--mdc-secondary-navigation-tab-container-height: var(--aup-tab-nav-tonal-tab-height, 30px)}:host([appearance=tonal]) .mat-mdc-tab-link{min-width:0;padding:var(--aup-tab-nav-tonal-tab-padding, 0 12px);border-radius:6px;font-size:var(--aup-tab-nav-tonal-font-size, 13px);transition:background-color .12s linear}:host([appearance=tonal]) .mat-mdc-tab-link+.mat-mdc-tab-link{margin-left:var(--aup-tab-nav-tonal-gap, 2px)}:host([appearance=tonal]) .mat-mdc-tab-link:hover:not(.mdc-tab--active){background-color:var(--aup-tab-nav-hover-background, rgba(63, 81, 181, .07))}:host([appearance=tonal]) .mat-mdc-tab-link.mdc-tab--active{font-weight:var(--aup-tab-nav-tonal-selected-weight, 700)}:host([appearance=tonal]) .mat-mdc-tab-link:has(aup-command-face.has-text-and-leading-icon) aup-command-face{margin-top:0;margin-left:calc(-1 * var(--aup-tab-nav-tonal-leading-icon-inset, 4px))}:host([appearance=tonal]) ::ng-deep .mdc-tab-indicator__content--underline{align-self:stretch;height:100%;border:0;border-radius:6px;background:var(--aup-tab-nav-tonal-selected-background, var(--aup-tab-nav-theme-accent-soft, #e8eaf6))}:host([appearance=tonal]) ::ng-deep .mdc-tab__ripple,:host([appearance=tonal]) ::ng-deep .mat-mdc-tab-ripple{display: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: "component", type: i3$2.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "animationDuration"], exportAs: ["matTabNavBar", "matTabNav"] }, { kind: "component", type: i3$2.MatTabNavPanel, selector: "mat-tab-nav-panel", inputs: ["id"], exportAs: ["matTabNavPanel"] }, { kind: "component", type: i3$2.MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["disabled", "disableRipple", "tabIndex", "active", "id"], exportAs: ["matTabLink"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"
|
|
16123
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TabbedPlaceNavigationComponent, selector: "aup-tabbed-place-navigation", inputs: { appearance: "appearance" }, host: { properties: { "attr.appearance": "this.appearance", "@.disabled": "this.animationsDisabled" } }, usesInheritance: true, ngImport: i0, template: "<!-- Declared BEFORE the nav that references it: the nav lives in an *ngIf embedded view, and a\n template ref declared after it can be unresolved on that view's first render. -->\n<mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>\n<!-- Tabs keep their natural width, packed to the left; Material stretches them to fill by default. -->\n<nav mat-tab-nav-bar [mat-stretch-tabs]=\"false\" [tabPanel]=\"tabPanel\"\n *ngIf=\"!hidden$.value\" [@slideDownOnEnter]>\n <ng-content select=\"[nav-start]\"></ng-content>\n <a mat-tab-link *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n aup-gc #gc=\"aup-gc\"\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n <ng-content select=\"[nav-end]\"></ng-content>\n</nav>\n", styles: [":host{display:block}nav{overflow:hidden}:host([appearance=folder]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mdc-secondary-navigation-tab-container-height: 38px;background:var(--aup-tab-nav-bar-background, #fff);padding-top:6px;padding-left:var(--aup-tab-nav-inset, 8px);box-shadow:inset 0 -1px 0 var(--aup-tab-nav-edge-color, var(--pinstripe-border-color, rgba(0, 0, 0, .2)))}:host([appearance=folder]) .mat-mdc-tab-link{position:relative;min-width:0;padding:0 12px var(--aup-tab-nav-label-padding-bottom, 0);margin-right:2px;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;transition:background-color .12s linear}:host([appearance=folder]) .mat-mdc-tab-link:has(aup-icon){padding-bottom:var(--aup-tab-nav-label-padding-bottom, 8px)}:host([appearance=folder]) .mat-mdc-tab-link:hover:not(.mdc-tab--active){background-color:var(--aup-tab-nav-hover-background, rgba(63, 81, 181, .07))}:host([appearance=folder]) .mat-mdc-tab-link.mdc-tab--active{background-color:var(--aup-tab-nav-page-background, var(--aup-default-background, #fff));border-color:var(--aup-tab-nav-edge-color, var(--pinstripe-border-color, rgba(0, 0, 0, .2)));font-weight:700}:host([appearance=folder]) .mat-mdc-tab-link.mdc-tab--active:after{content:\"\";position:absolute;inset:-1px -1px 0;border-radius:10px 10px 0 0;background:linear-gradient(var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)) 0 var(--aup-tab-nav-top-line-width, 2px),transparent 0);pointer-events:none}:host([appearance=folder]) ::ng-deep .mdc-tab-indicator{display:none}:host([appearance=folder]) ::ng-deep .mdc-tab__content{height:100%}:host([appearance=folder]) ::ng-deep .mdc-tab__ripple,:host([appearance=folder]) ::ng-deep .mat-mdc-tab-ripple{display:none}:host([appearance=segmented]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));margin:var(--aup-tab-nav-segmented-padding, 12px 12px 4px);--mdc-secondary-navigation-tab-container-height: 26px;display:inline-flex;max-width:100%;padding:3px;border:1px solid var(--aup-tab-nav-segment-border-color, #d9dce2);border-radius:9px;background:var(--aup-tab-nav-segment-track-background, var(--aup-tab-nav-bar-background, #f0f2f5))}:host([appearance=segmented]) .mat-mdc-tab-link{min-width:0;padding:0 12px;border-radius:6px;font-size:13px}:host([appearance=segmented]) .mat-mdc-tab-link+.mat-mdc-tab-link{margin-left:2px}:host([appearance=segmented]) .mat-mdc-tab-link.mdc-tab--active{font-weight:700}:host([appearance=segmented]) ::ng-deep .mdc-tab-indicator__content--underline{align-self:stretch;height:100%;border:0;border-radius:6px;background:var(--aup-tab-nav-segment-selected-background, #fff);box-shadow:0 1px 2px #00000024,0 1px 4px #0000000f}:host([appearance=segmented]) ::ng-deep .mdc-tab__ripple,:host([appearance=segmented]) ::ng-deep .mat-mdc-tab-ripple{display:none}:host([appearance=tonal]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));padding:var(--aup-tab-nav-tonal-padding, 8px 12px);background:var(--aup-tab-nav-page-background, var(--aup-default-background, #fff));border-bottom:1px solid var(--aup-tab-nav-underline-color, #d9dce2);--mdc-secondary-navigation-tab-container-height: var(--aup-tab-nav-tonal-tab-height, 30px)}:host([appearance=tonal]) .mat-mdc-tab-link{min-width:0;padding:var(--aup-tab-nav-tonal-tab-padding, 0 12px);border-radius:6px;font-size:var(--aup-tab-nav-tonal-font-size, 13px);transition:background-color .12s linear}:host([appearance=tonal]) .mat-mdc-tab-link+.mat-mdc-tab-link{margin-left:var(--aup-tab-nav-tonal-gap, 2px)}:host([appearance=tonal]) .mat-mdc-tab-link:hover:not(.mdc-tab--active){background-color:var(--aup-tab-nav-hover-background, rgba(63, 81, 181, .07))}:host([appearance=tonal]) .mat-mdc-tab-link.mdc-tab--active{font-weight:var(--aup-tab-nav-tonal-selected-weight, 700)}:host([appearance=tonal]) .mat-mdc-tab-link:has(aup-command-face.has-text-and-leading-icon) aup-command-face{margin-top:0;margin-left:calc(-1 * var(--aup-tab-nav-tonal-leading-icon-inset, 4px))}:host([appearance=tonal]) ::ng-deep .mdc-tab-indicator__content--underline{align-self:stretch;height:100%;border:0;border-radius:6px;background:var(--aup-tab-nav-tonal-selected-background, var(--aup-tab-nav-theme-accent-soft, #e8eaf6))}:host([appearance=tonal]) ::ng-deep .mdc-tab__ripple,:host([appearance=tonal]) ::ng-deep .mat-mdc-tab-ripple{display: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: "component", type: i3$2.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "animationDuration"], exportAs: ["matTabNavBar", "matTabNav"] }, { kind: "component", type: i3$2.MatTabNavPanel, selector: "mat-tab-nav-panel", inputs: ["id"], exportAs: ["matTabNavPanel"] }, { kind: "component", type: i3$2.MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["disabled", "disableRipple", "tabIndex", "active", "id"], exportAs: ["matTabLink"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "directive", type: GarbageCollectorDirective, selector: "[aup-gc]", exportAs: ["aup-gc"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }], animations: [slideDownOnEnterAnimation] });
|
|
16103
16124
|
}
|
|
16104
16125
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TabbedPlaceNavigationComponent, decorators: [{
|
|
16105
16126
|
type: Component,
|