@coolon/angular-ui-powerups 14.7.0 → 14.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/cards/card-container/card-container.component.mjs +3 -3
- package/esm2020/lib/components/cards/card-stack/card-stack.component.mjs +3 -3
- package/esm2020/lib/components/commands/command/command.component.mjs +4 -4
- package/esm2020/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +2 -2
- package/esm2020/lib/components/forms/abstract-input.component.mjs +13 -13
- package/esm2020/lib/components/forms/abstract-list-input.component.mjs +22 -16
- package/esm2020/lib/components/forms/abstract-value-input.component.mjs +23 -17
- package/esm2020/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +14 -7
- package/esm2020/lib/components/forms/checkbox-input/checkbox-input.component.mjs +3 -3
- package/esm2020/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +13 -6
- package/esm2020/lib/components/forms/number-input/number-input.component.mjs +3 -3
- package/esm2020/lib/components/forms/password-input/password-input.component.mjs +3 -3
- package/esm2020/lib/components/forms/select-input/select-input.component.mjs +13 -6
- package/esm2020/lib/components/forms/string-input/string-input.component.mjs +8 -8
- package/esm2020/lib/components/forms/text-input/text-input.component.mjs +3 -3
- package/esm2020/lib/components/tables/abstract-table-model.mjs +8 -5
- package/esm2020/lib/components/tables/column/column-model.mjs +10 -7
- package/esm2020/lib/components/tables/column/selection-column-model.mjs +2 -1
- package/esm2020/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +3 -3
- package/esm2020/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +22 -6
- package/esm2020/lib/components/tables/renderer/selection-cell/selection-cell.component.mjs +11 -6
- package/esm2020/lib/components/tables/renderer/table-body/table-body.component.mjs +3 -3
- package/esm2020/lib/components/tables/table/table-model.mjs +6 -1
- package/esm2020/lib/components/tables/table-row-menu/table-row-menu.component.mjs +2 -2
- package/esm2020/lib/components/vertical-focus-container/vertical-focus-container.component.mjs +3 -3
- package/esm2020/lib/directives/command.directive.mjs +3 -3
- package/esm2020/lib/interaction/activity.mjs +2 -2
- package/esm2020/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +5 -5
- package/esm2020/lib/interaction/components/input-activities/input-activity.mjs +3 -3
- package/esm2020/lib/interaction/components/input-activities/select-input-activity.mjs +4 -4
- package/esm2020/lib/interaction/components/input-activities/string-input-activity.mjs +4 -4
- package/fesm2015/coolon-angular-ui-powerups.mjs +183 -123
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +183 -119
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/forms/abstract-input.component.d.ts +5 -5
- package/lib/components/forms/abstract-list-input.component.d.ts +9 -5
- package/lib/components/forms/abstract-value-input.component.d.ts +10 -6
- package/lib/components/forms/autocomplete-input/autocomplete-input.component.d.ts +6 -1
- package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +6 -1
- package/lib/components/forms/select-input/select-input.component.d.ts +6 -1
- package/lib/components/forms/string-input/string-input.component.d.ts +2 -2
- package/lib/components/tables/abstract-table-model.d.ts +1 -1
- package/lib/components/tables/column/column-model.d.ts +4 -2
- package/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.d.ts +5 -3
- package/lib/components/tables/renderer/selection-cell/selection-cell.component.d.ts +2 -2
- package/package.json +2 -2
|
@@ -39,7 +39,7 @@ import { MatTableModule } from '@angular/material/table';
|
|
|
39
39
|
import * as i4 from '@angular/material/tooltip';
|
|
40
40
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
41
41
|
import * as i1$3 from '@coolon/pectin';
|
|
42
|
-
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, DelegatingListModel, MutableValueModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, Functions, MultipleSelectionModel, AbstractComputedListModel, DelegatingSelectionModel, DelegateProxyHandler, DirtyTrackingForm, PagedListModel, PageController, ComputedListModel, Deferred } from '@coolon/pectin';
|
|
42
|
+
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, DelegatingListModel, MutableValueModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, Functions, SelectionModel, HasDelegate, MultipleSelectionModel, AbstractComputedListModel, DelegatingSelectionModel, DelegateProxyHandler, DirtyTrackingForm, PagedListModel, PageController, ComputedListModel, Deferred } from '@coolon/pectin';
|
|
43
43
|
import { __decorate, __param, __metadata } from 'tslib';
|
|
44
44
|
import * as i1 from '@angular/platform-browser';
|
|
45
45
|
import escapeStringRegexp from 'escape-string-regexp';
|
|
@@ -78,7 +78,7 @@ class CommandDirective extends GarbageCollector {
|
|
|
78
78
|
}
|
|
79
79
|
set pectinCommand(command) {
|
|
80
80
|
this._command = command;
|
|
81
|
-
this._commandEnabled.setDelegate(command ? command.enabled : null);
|
|
81
|
+
this._commandEnabled.setDelegate(command ? command.enabled$ : null);
|
|
82
82
|
}
|
|
83
83
|
get pectinCommand() {
|
|
84
84
|
return this._command;
|
|
@@ -140,7 +140,7 @@ class CommandDirective extends GarbageCollector {
|
|
|
140
140
|
notifyClick($event) {
|
|
141
141
|
$event.preventDefault();
|
|
142
142
|
$event.stopPropagation();
|
|
143
|
-
if (this.pectinCommand.enabled
|
|
143
|
+
if (this.pectinCommand.enabled$.value) {
|
|
144
144
|
if (this.pectinCommand instanceof UnaryCommand) {
|
|
145
145
|
this.pectinCommand.withContext({ event: $event }).execute(this.commandParameter);
|
|
146
146
|
}
|
|
@@ -930,10 +930,10 @@ class CardContainerComponent extends AbstractCardContainerComponent {
|
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
932
|
CardContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CardContainerComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
933
|
-
CardContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: CardContainerComponent, selector: "aup-card-container", inputs: { columnCount: "columnCount", enabledScroll: "enabledScroll" }, 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]\"></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.enabled
|
|
933
|
+
CardContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: CardContainerComponent, selector: "aup-card-container", inputs: { columnCount: "columnCount", enabledScroll: "enabledScroll" }, 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]\"></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.enabled$.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" icon=\"mat:add\"></aup-icon>\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=\"!enabledScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n\n<aup-scroll-container *ngIf=\"enabledScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</aup-scroll-container>\n\n<div class=\"footer-container\">\n <ng-content select=\"[card-container-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-max-width: var(--card-max-width, auto);--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-fit,minmax(var(--resolved-card-width),var(--resolved-card-max-width)));min-width:calc(var(--resolved-card-width) + 2 * var(--resolved-card-gap));width:calc((var(--resolved-card-width) + var(--resolved-card-gap)) * 2 + var(--grid-gap))}: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"] }, { 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"] }] });
|
|
934
934
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CardContainerComponent, decorators: [{
|
|
935
935
|
type: Component,
|
|
936
|
-
args: [{ selector: 'aup-card-container', template: "<div class=\"header-container\">\n <ng-content select=\"[card-container-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.enabled
|
|
936
|
+
args: [{ selector: 'aup-card-container', template: "<div class=\"header-container\">\n <ng-content select=\"[card-container-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.enabled$.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" icon=\"mat:add\"></aup-icon>\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=\"!enabledScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n\n<aup-scroll-container *ngIf=\"enabledScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</aup-scroll-container>\n\n<div class=\"footer-container\">\n <ng-content select=\"[card-container-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-max-width: var(--card-max-width, auto);--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-fit,minmax(var(--resolved-card-width),var(--resolved-card-max-width)));min-width:calc(var(--resolved-card-width) + 2 * var(--resolved-card-gap));width:calc((var(--resolved-card-width) + var(--resolved-card-gap)) * 2 + var(--grid-gap))}: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"] }]
|
|
937
937
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { columnCount: [{
|
|
938
938
|
type: Input
|
|
939
939
|
}], enabledScroll: [{
|
|
@@ -1014,10 +1014,10 @@ class CardStackComponent extends AbstractCardContainerComponent {
|
|
|
1014
1014
|
}
|
|
1015
1015
|
}
|
|
1016
1016
|
CardStackComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CardStackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1017
|
-
CardStackComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: CardStackComponent, selector: "aup-card-stack", usesInheritance: true, ngImport: i0, template: "<div class=\"card-container\">\n <ng-content></ng-content>\n</div>\n<div class=\"footer\">\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled
|
|
1017
|
+
CardStackComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: CardStackComponent, selector: "aup-card-stack", usesInheritance: true, ngImport: i0, template: "<div class=\"card-container\">\n <ng-content></ng-content>\n</div>\n<div class=\"footer\">\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled$.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" icon=\"mat:add\"></aup-icon>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n <ng-content select=\"[aup-card-stack-footer]\"></ng-content>\n</div>\n", styles: [":host{--resolved-card-gap: var(--card-gap, 16px);--resolved-card-height: var(--card-height, auto);--resolved-card-min-height: var(--card-min-height, auto);--resolved-card-background: var(--card-background, #fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:grid;grid-template-columns:1fr;grid-auto-rows:minmax(var(--resolved-card-min-height),var(--resolved-card-height));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);max-width:100%}.footer{display:flex;flex-direction:column;align-items:stretch;padding:0 var(--resolved-card-gap) var(--resolved-card-gap)}.add-card-container{width:var(--resolved-card-width);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{width:var(--resolved-card-width);height:var(--resolved-card-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"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }] });
|
|
1018
1018
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CardStackComponent, decorators: [{
|
|
1019
1019
|
type: Component,
|
|
1020
|
-
args: [{ selector: 'aup-card-stack', template: "<div class=\"card-container\">\n <ng-content></ng-content>\n</div>\n<div class=\"footer\">\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled
|
|
1020
|
+
args: [{ selector: 'aup-card-stack', template: "<div class=\"card-container\">\n <ng-content></ng-content>\n</div>\n<div class=\"footer\">\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled$.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" icon=\"mat:add\"></aup-icon>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n <ng-content select=\"[aup-card-stack-footer]\"></ng-content>\n</div>\n", styles: [":host{--resolved-card-gap: var(--card-gap, 16px);--resolved-card-height: var(--card-height, auto);--resolved-card-min-height: var(--card-min-height, auto);--resolved-card-background: var(--card-background, #fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:grid;grid-template-columns:1fr;grid-auto-rows:minmax(var(--resolved-card-min-height),var(--resolved-card-height));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);max-width:100%}.footer{display:flex;flex-direction:column;align-items:stretch;padding:0 var(--resolved-card-gap) var(--resolved-card-gap)}.add-card-container{width:var(--resolved-card-width);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{width:var(--resolved-card-width);height:var(--resolved-card-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}\n"] }]
|
|
1021
1021
|
}], ctorParameters: function () { return []; } });
|
|
1022
1022
|
|
|
1023
1023
|
const HorizontalAlignment = Enum({
|
|
@@ -1062,7 +1062,7 @@ class CommandComponent extends PopupAwareComponent {
|
|
|
1062
1062
|
this.CommandFace = CommandFace;
|
|
1063
1063
|
this.alignFace = HorizontalAlignment.CENTER;
|
|
1064
1064
|
const { chain, switchOn } = Dsl.disposeWith(this);
|
|
1065
|
-
this.faces$ = chain(this.command.busy).mapToList(busy => {
|
|
1065
|
+
this.faces$ = chain(this.command.busy$).mapToList(busy => {
|
|
1066
1066
|
return busy ?
|
|
1067
1067
|
[this.busyFaceModel.value, this.faceModel.value] :
|
|
1068
1068
|
[this.faceModel.value, this.busyFaceModel.value];
|
|
@@ -1092,7 +1092,7 @@ class CommandComponent extends PopupAwareComponent {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
1094
|
CommandComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CommandComponent, deps: [{ token: i0.ElementRef }, { token: POPUP_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1095
|
-
CommandComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: CommandComponent, selector: "aup-command", inputs: { command: "command", faceModel: "faceModel", face: "face", busyFaceModel: "busyFaceModel", busyFace: "busyFace", alignFace: "alignFace" }, host: { properties: { "class": "this.alignFace" } }, viewQueries: [{ propertyName: "button", first: true, predicate: MatButton, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"iconOnly$.value\">\n <button mat-icon-button [pectinCommand]=\"command\" [color]=\"color$.value\" [class.busy]=\"command.busy
|
|
1095
|
+
CommandComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: CommandComponent, selector: "aup-command", inputs: { command: "command", faceModel: "faceModel", face: "face", busyFaceModel: "busyFaceModel", busyFace: "busyFace", alignFace: "alignFace" }, host: { properties: { "class": "this.alignFace" } }, viewQueries: [{ propertyName: "button", first: true, predicate: MatButton, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"iconOnly$.value\">\n <button mat-icon-button [pectinCommand]=\"command\" [color]=\"color$.value\" [class.busy]=\"command.busy$.value\"\n [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=\"CommandFace.Style.STROKED\">\n <button mat-stroked-button [pectinCommand]=\"command\" [color]=\"color$.value\" [class.busy]=\"command.busy$.value\"\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=\"CommandFace.Style.RAISED\">\n <button mat-raised-button [pectinCommand]=\"command\" [color]=\"color$.value\" [class.busy]=\"command.busy$.value\"\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 mat-button [pectinCommand]=\"command\" [color]=\"color$.value\" [class.busy]=\"command.busy$.value\"\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", styles: [":host{display:inline-flex;flex-direction:row;justify-content:stretch}:host.centered button{text-align:center}:host.start button{text-align:start}:host.end button{text-align:end}button{flex:1}\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: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }] });
|
|
1096
1096
|
__decorate([
|
|
1097
1097
|
TrackExternal(),
|
|
1098
1098
|
__metadata("design:type", Command)
|
|
@@ -1115,7 +1115,7 @@ __decorate([
|
|
|
1115
1115
|
], CommandComponent.prototype, "busyFace", void 0);
|
|
1116
1116
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CommandComponent, decorators: [{
|
|
1117
1117
|
type: Component,
|
|
1118
|
-
args: [{ selector: 'aup-command', template: "<ng-container *ngIf=\"iconOnly$.value\">\n <button mat-icon-button [pectinCommand]=\"command\" [color]=\"color$.value\" [class.busy]=\"command.busy
|
|
1118
|
+
args: [{ selector: 'aup-command', template: "<ng-container *ngIf=\"iconOnly$.value\">\n <button mat-icon-button [pectinCommand]=\"command\" [color]=\"color$.value\" [class.busy]=\"command.busy$.value\"\n [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=\"CommandFace.Style.STROKED\">\n <button mat-stroked-button [pectinCommand]=\"command\" [color]=\"color$.value\" [class.busy]=\"command.busy$.value\"\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=\"CommandFace.Style.RAISED\">\n <button mat-raised-button [pectinCommand]=\"command\" [color]=\"color$.value\" [class.busy]=\"command.busy$.value\"\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 mat-button [pectinCommand]=\"command\" [color]=\"color$.value\" [class.busy]=\"command.busy$.value\"\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", styles: [":host{display:inline-flex;flex-direction:row;justify-content:stretch}:host.centered button{text-align:center}:host.start button{text-align:start}:host.end button{text-align:end}button{flex:1}\n"] }]
|
|
1119
1119
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
1120
1120
|
type: Inject,
|
|
1121
1121
|
args: [POPUP_CONTAINER]
|
|
@@ -1370,7 +1370,7 @@ class PopupMenuRendererComponent extends DisposableComponent {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
1372
|
isCommandEnabled(data) {
|
|
1373
|
-
return this.isCommand(data) && data.command.enabled
|
|
1373
|
+
return this.isCommand(data) && data.command.enabled$.value;
|
|
1374
1374
|
}
|
|
1375
1375
|
// @Trace()
|
|
1376
1376
|
onCommandFired() {
|
|
@@ -1620,7 +1620,7 @@ class AbstractInputComponent extends DisposableComponent {
|
|
|
1620
1620
|
const self = this;
|
|
1621
1621
|
this.errorStateMatcher = {
|
|
1622
1622
|
isErrorState(control, form) {
|
|
1623
|
-
return self.hasErrors();
|
|
1623
|
+
return self.hasErrors$();
|
|
1624
1624
|
}
|
|
1625
1625
|
};
|
|
1626
1626
|
}
|
|
@@ -1644,29 +1644,29 @@ class AbstractInputComponent extends DisposableComponent {
|
|
|
1644
1644
|
this.escapeKey.emit();
|
|
1645
1645
|
}
|
|
1646
1646
|
safelyInvoke(command) {
|
|
1647
|
-
if (command && command.enabled
|
|
1647
|
+
if (command && command.enabled$.value) {
|
|
1648
1648
|
command.execute();
|
|
1649
1649
|
}
|
|
1650
1650
|
}
|
|
1651
1651
|
ngOnInit() {
|
|
1652
1652
|
}
|
|
1653
1653
|
isEnabled() {
|
|
1654
|
-
return this.enabled
|
|
1654
|
+
return this.enabled$.value;
|
|
1655
1655
|
}
|
|
1656
|
-
get enabled() {
|
|
1657
|
-
return this.
|
|
1656
|
+
get enabled$() {
|
|
1657
|
+
return this.formValue$.enabled;
|
|
1658
1658
|
}
|
|
1659
|
-
hasErrors() {
|
|
1660
|
-
return !this.errorList
|
|
1659
|
+
hasErrors$() {
|
|
1660
|
+
return !this.errorList$.query().isEmpty();
|
|
1661
1661
|
}
|
|
1662
|
-
get errorList() {
|
|
1663
|
-
return this.
|
|
1662
|
+
get errorList$() {
|
|
1663
|
+
return this.formValue$.errorList;
|
|
1664
1664
|
}
|
|
1665
|
-
get firstError() {
|
|
1666
|
-
return this.hasErrors() ? this.errorList
|
|
1665
|
+
get firstError$() {
|
|
1666
|
+
return this.hasErrors$() ? this.errorList$.value[0] : null;
|
|
1667
1667
|
}
|
|
1668
1668
|
get focusContext() {
|
|
1669
|
-
return this.
|
|
1669
|
+
return this.formValue$.focusContext;
|
|
1670
1670
|
}
|
|
1671
1671
|
get floatLabel() {
|
|
1672
1672
|
return this.dense ? 'never' : this.userFloatLabel;
|
|
@@ -1752,14 +1752,14 @@ class AbstractListInputComponent extends AbstractInputComponent {
|
|
|
1752
1752
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
1753
1753
|
*/
|
|
1754
1754
|
// We have to register it as a disposable so it ditches any listeners when we're disposed.
|
|
1755
|
-
this.
|
|
1756
|
-
this.
|
|
1757
|
-
this.setValueIsInProgress = new Guard();
|
|
1755
|
+
this.formValue$ = this.registerDisposable(new Form.DelegatingFormListModel());
|
|
1756
|
+
this.componentList$ = new MutableListModel();
|
|
1757
|
+
this.setValueIsInProgress$ = new Guard();
|
|
1758
1758
|
this.valueChange = new EventEmitter();
|
|
1759
1759
|
const { when, valueOf, chain } = Dsl.disposeWith(this);
|
|
1760
|
-
const binding = new Binding.Identity(this.
|
|
1761
|
-
const inExternalChange = valueOf.any(this.setValueIsInProgress
|
|
1762
|
-
when(this.
|
|
1760
|
+
const binding = new Binding.Identity(this.formValue$, this.componentList$).writeRight();
|
|
1761
|
+
const inExternalChange = valueOf.any(this.setValueIsInProgress$, chain(binding.direction).equals(Binding.Direction.RIGHT)).areTruthy();
|
|
1762
|
+
when(this.componentList$).changes((is, was) => {
|
|
1763
1763
|
this.valueChange.emit(is);
|
|
1764
1764
|
this.onValueEditedListeners.fire(l => l(is, was));
|
|
1765
1765
|
}, {
|
|
@@ -1769,33 +1769,39 @@ class AbstractListInputComponent extends AbstractInputComponent {
|
|
|
1769
1769
|
// fashion, i.e. [(value)]="..."
|
|
1770
1770
|
unless: inExternalChange
|
|
1771
1771
|
});
|
|
1772
|
-
DebugContext.tag(this.
|
|
1772
|
+
DebugContext.tag(this.formValue$, `${this.constructor.name}.formValueModel`);
|
|
1773
1773
|
}
|
|
1774
1774
|
// We add support for simple direct display of values by allowing components to be used
|
|
1775
1775
|
// by `component.value = ...` This use of the component without a value model in tables
|
|
1776
1776
|
// and the like.
|
|
1777
1777
|
set value(value) {
|
|
1778
|
-
this.setValueIsInProgress
|
|
1779
|
-
if (!this.listHolder) {
|
|
1780
|
-
this.listHolder = new MutableListModel(value);
|
|
1781
|
-
this.
|
|
1778
|
+
this.setValueIsInProgress$.whileTrue(() => {
|
|
1779
|
+
if (!this.listHolder$) {
|
|
1780
|
+
this.listHolder$ = new MutableListModel(value);
|
|
1781
|
+
this.list$ = this.listHolder$;
|
|
1782
1782
|
}
|
|
1783
1783
|
else {
|
|
1784
|
-
this.listHolder
|
|
1784
|
+
this.listHolder$.value = value;
|
|
1785
1785
|
}
|
|
1786
1786
|
});
|
|
1787
1787
|
}
|
|
1788
1788
|
}
|
|
1789
1789
|
AbstractListInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbstractListInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1790
|
-
AbstractListInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: AbstractListInputComponent, selector: "ng-component", inputs: { listModel: "listModel", value: "value" }, outputs: { valueChange: "valueChange" }, usesInheritance: true, ngImport: i0, template: "", isInline: true });
|
|
1790
|
+
AbstractListInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: AbstractListInputComponent, selector: "ng-component", inputs: { list$: "list$", listModel: "listModel", value: "value" }, outputs: { valueChange: "valueChange" }, usesInheritance: true, ngImport: i0, template: "", isInline: true });
|
|
1791
1791
|
__decorate([
|
|
1792
|
-
TrackExternal({ delegateTo: "
|
|
1792
|
+
TrackExternal({ delegateTo: "formValue$" }),
|
|
1793
|
+
__metadata("design:type", Object)
|
|
1794
|
+
], AbstractListInputComponent.prototype, "list$", void 0);
|
|
1795
|
+
__decorate([
|
|
1796
|
+
TrackExternal({ delegateTo: "formValue$" }),
|
|
1793
1797
|
__metadata("design:type", Object)
|
|
1794
1798
|
], AbstractListInputComponent.prototype, "listModel", void 0);
|
|
1795
1799
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbstractListInputComponent, decorators: [{
|
|
1796
1800
|
type: Component,
|
|
1797
1801
|
args: [{ template: "" }]
|
|
1798
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
1802
|
+
}], ctorParameters: function () { return []; }, propDecorators: { list$: [{
|
|
1803
|
+
type: Input
|
|
1804
|
+
}], listModel: [{
|
|
1799
1805
|
type: Input
|
|
1800
1806
|
}], value: [{
|
|
1801
1807
|
type: Input
|
|
@@ -1810,21 +1816,21 @@ class AbstractValueInputComponent extends AbstractInputComponent {
|
|
|
1810
1816
|
* A backing model for all our @Input() valueModel properties which should be defined as follows.
|
|
1811
1817
|
*
|
|
1812
1818
|
* @Input() @TrackExternal({useExisting: "inputModel"})
|
|
1813
|
-
*
|
|
1819
|
+
* value$: DirtyTrackingForm.ValueModel<string> | MutableValueModel<string>;
|
|
1814
1820
|
*
|
|
1815
1821
|
* This approach allows the input to accept plain or form models but all backed by a form
|
|
1816
1822
|
* friendly delegate. We have to use an existing delegate for union types as pectin just
|
|
1817
1823
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
1818
1824
|
*/
|
|
1819
1825
|
// We have to register it as a disposable so it ditches any listeners when we're disposed.
|
|
1820
|
-
this.
|
|
1821
|
-
this.setValueInProgress = new Guard();
|
|
1822
|
-
this.
|
|
1826
|
+
this.formValue$ = this.registerDisposable(new Form.DelegatingFormValueModel());
|
|
1827
|
+
this.setValueInProgress$ = new Guard();
|
|
1828
|
+
this.componentValue$ = new MutableValueModel();
|
|
1823
1829
|
this.valueChange = new EventEmitter();
|
|
1824
1830
|
const { when, chain, valueOf } = Dsl.disposeWith(this);
|
|
1825
|
-
const binding = new Binding.Identity(this.
|
|
1826
|
-
const inExternalChange = valueOf.any(this.setValueInProgress
|
|
1827
|
-
when(this.
|
|
1831
|
+
const binding = new Binding.Identity(this.formValue$, this.componentValue$).writeRight();
|
|
1832
|
+
const inExternalChange = valueOf.any(this.setValueInProgress$, chain(binding.direction).equals(Binding.Direction.RIGHT)).areTruthy();
|
|
1833
|
+
when(this.componentValue$).changes((is, was) => {
|
|
1828
1834
|
this.valueChange.emit(is);
|
|
1829
1835
|
this.onValueEditedListeners.fire(l => l(is, was));
|
|
1830
1836
|
}, {
|
|
@@ -1834,33 +1840,39 @@ class AbstractValueInputComponent extends AbstractInputComponent {
|
|
|
1834
1840
|
// fashion, i.e. [(value)]="..."
|
|
1835
1841
|
unless: inExternalChange
|
|
1836
1842
|
});
|
|
1837
|
-
DebugContext.tag(this.
|
|
1843
|
+
DebugContext.tag(this.formValue$, `${this.constructor.name}.formValueModel`);
|
|
1838
1844
|
}
|
|
1839
1845
|
// We add support for simple direct display of values by allowing components to be used
|
|
1840
1846
|
// by `component.value = ...` This use of the component without a value model in tables
|
|
1841
1847
|
// and the like.
|
|
1842
1848
|
set value(value) {
|
|
1843
|
-
this.setValueInProgress
|
|
1844
|
-
if (!this.plainValueHolder) {
|
|
1845
|
-
this.plainValueHolder = new MutableValueModel(value);
|
|
1846
|
-
this.
|
|
1849
|
+
this.setValueInProgress$.whileTrue(() => {
|
|
1850
|
+
if (!this.plainValueHolder$) {
|
|
1851
|
+
this.plainValueHolder$ = new MutableValueModel(value);
|
|
1852
|
+
this.value$ = this.plainValueHolder$;
|
|
1847
1853
|
}
|
|
1848
1854
|
else {
|
|
1849
|
-
this.plainValueHolder
|
|
1855
|
+
this.plainValueHolder$.value = value;
|
|
1850
1856
|
}
|
|
1851
1857
|
});
|
|
1852
1858
|
}
|
|
1853
1859
|
}
|
|
1854
1860
|
AbstractValueInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbstractValueInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1855
|
-
AbstractValueInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: AbstractValueInputComponent, selector: "ng-component", inputs: { valueModel: "valueModel", value: "value" }, outputs: { valueChange: "valueChange" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
1861
|
+
AbstractValueInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: AbstractValueInputComponent, selector: "ng-component", inputs: { value$: "value$", valueModel: "valueModel", value: "value" }, outputs: { valueChange: "valueChange" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
1862
|
+
__decorate([
|
|
1863
|
+
TrackExternal({ delegateTo: 'formValue$' }),
|
|
1864
|
+
__metadata("design:type", Object)
|
|
1865
|
+
], AbstractValueInputComponent.prototype, "value$", void 0);
|
|
1856
1866
|
__decorate([
|
|
1857
|
-
TrackExternal({ delegateTo: '
|
|
1867
|
+
TrackExternal({ delegateTo: 'formValue$' }),
|
|
1858
1868
|
__metadata("design:type", Object)
|
|
1859
1869
|
], AbstractValueInputComponent.prototype, "valueModel", void 0);
|
|
1860
1870
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbstractValueInputComponent, decorators: [{
|
|
1861
1871
|
type: Component,
|
|
1862
1872
|
args: [{ template: '' }]
|
|
1863
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
1873
|
+
}], ctorParameters: function () { return []; }, propDecorators: { value$: [{
|
|
1874
|
+
type: Input
|
|
1875
|
+
}], valueModel: [{
|
|
1864
1876
|
type: Input
|
|
1865
1877
|
}], value: [{
|
|
1866
1878
|
type: Input
|
|
@@ -1877,6 +1889,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
1877
1889
|
class AutocompleteInputComponent extends AbstractValueInputComponent {
|
|
1878
1890
|
constructor() {
|
|
1879
1891
|
super();
|
|
1892
|
+
this._options$ = new DelegatingListModel();
|
|
1880
1893
|
this.autoActiveFirstOption = true;
|
|
1881
1894
|
this.autoFilter = true;
|
|
1882
1895
|
this.inSearchUpdate$ = new Guard();
|
|
@@ -1891,7 +1904,7 @@ class AutocompleteInputComponent extends AbstractValueInputComponent {
|
|
|
1891
1904
|
};
|
|
1892
1905
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
1893
1906
|
const filter$ = chain(this.filterValue).map(v => this.filterFactory(v), { allowNil: true });
|
|
1894
|
-
this.filteredOptions = chain(this.
|
|
1907
|
+
this.filteredOptions = chain(this.options$)
|
|
1895
1908
|
.select(option => !this.autoFilter || filter$.value(option), { dependsOn: filter$ });
|
|
1896
1909
|
}
|
|
1897
1910
|
ngOnInit() {
|
|
@@ -1917,18 +1930,22 @@ class AutocompleteInputComponent extends AbstractValueInputComponent {
|
|
|
1917
1930
|
this.inSearchUpdate$.whileTrue(() => {
|
|
1918
1931
|
this.rawTextContent$.value = undefined;
|
|
1919
1932
|
// @ts-ignore
|
|
1920
|
-
this.
|
|
1933
|
+
this.value$["value"] = $event.option.value;
|
|
1921
1934
|
});
|
|
1922
1935
|
}
|
|
1923
1936
|
}
|
|
1924
1937
|
AutocompleteInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AutocompleteInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1925
|
-
AutocompleteInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: AutocompleteInputComponent, selector: "aup-autocomplete-input", inputs: { rawTextContent$: "rawTextContent$", optionsModel: "optionsModel", 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 appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"string\"\n matInput\n [matAutocomplete]=\"autocomplete\"\n placeholder=\"{{placeholder}}\"\n [ngModel]=\"
|
|
1938
|
+
AutocompleteInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: AutocompleteInputComponent, selector: "aup-autocomplete-input", inputs: { rawTextContent$: "rawTextContent$", options$: "options$", optionsModel: "optionsModel", 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 appearance=\"standard\" [floatLabel]=\"floatLabel\">\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=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors$\">{{firstError$}}</mat-error>\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}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "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.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$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: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: i7.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i7.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }] });
|
|
1926
1939
|
__decorate([
|
|
1927
1940
|
TrackExternal(),
|
|
1928
1941
|
__metadata("design:type", MutableValueModel)
|
|
1929
1942
|
], AutocompleteInputComponent.prototype, "rawTextContent$", void 0);
|
|
1930
1943
|
__decorate([
|
|
1931
|
-
TrackExternal(),
|
|
1944
|
+
TrackExternal({ delegateTo: "_options$" }),
|
|
1945
|
+
__metadata("design:type", ListModel)
|
|
1946
|
+
], AutocompleteInputComponent.prototype, "options$", void 0);
|
|
1947
|
+
__decorate([
|
|
1948
|
+
TrackExternal({ delegateTo: "_options$" }),
|
|
1932
1949
|
__metadata("design:type", ListModel)
|
|
1933
1950
|
], AutocompleteInputComponent.prototype, "optionsModel", void 0);
|
|
1934
1951
|
__decorate([
|
|
@@ -1937,9 +1954,11 @@ __decorate([
|
|
|
1937
1954
|
], AutocompleteInputComponent.prototype, "options", void 0);
|
|
1938
1955
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AutocompleteInputComponent, decorators: [{
|
|
1939
1956
|
type: Component,
|
|
1940
|
-
args: [{ selector: 'aup-autocomplete-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"string\"\n matInput\n [matAutocomplete]=\"autocomplete\"\n placeholder=\"{{placeholder}}\"\n [ngModel]=\"
|
|
1957
|
+
args: [{ selector: 'aup-autocomplete-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\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=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors$\">{{firstError$}}</mat-error>\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}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\n"] }]
|
|
1941
1958
|
}], ctorParameters: function () { return []; }, propDecorators: { rawTextContent$: [{
|
|
1942
1959
|
type: Input
|
|
1960
|
+
}], options$: [{
|
|
1961
|
+
type: Input
|
|
1943
1962
|
}], optionsModel: [{
|
|
1944
1963
|
type: Input
|
|
1945
1964
|
}], options: [{
|
|
@@ -1979,10 +1998,10 @@ class CheckboxInputComponent extends AbstractValueInputComponent {
|
|
|
1979
1998
|
}
|
|
1980
1999
|
}
|
|
1981
2000
|
CheckboxInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CheckboxInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1982
|
-
CheckboxInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: CheckboxInputComponent, selector: "aup-checkbox-input", inputs: { color: "color", labelPosition: "labelPosition" }, usesInheritance: true, ngImport: i0, template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"
|
|
2001
|
+
CheckboxInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: CheckboxInputComponent, selector: "aup-checkbox-input", inputs: { color: "color", labelPosition: "labelPosition" }, usesInheritance: true, ngImport: i0, template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"componentValue$.value\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n<mat-error *ngIf=\"hasErrors$\">{{firstError$}}</mat-error>\n", styles: [":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-hint,mat-error{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "directive", type: i3$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: i4$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
|
|
1983
2002
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CheckboxInputComponent, decorators: [{
|
|
1984
2003
|
type: Component,
|
|
1985
|
-
args: [{ selector: 'aup-checkbox-input', template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"
|
|
2004
|
+
args: [{ selector: 'aup-checkbox-input', template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"componentValue$.value\"\n [color]=\"color\"\n [labelPosition]=\"labelPosition\"\n [disabled]=\"!isEnabled()\"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n<mat-error *ngIf=\"hasErrors$\">{{firstError$}}</mat-error>\n", styles: [":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-hint,mat-error{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}\n"] }]
|
|
1986
2005
|
}], ctorParameters: function () { return []; }, propDecorators: { color: [{
|
|
1987
2006
|
type: Input
|
|
1988
2007
|
}], labelPosition: [{
|
|
@@ -1999,15 +2018,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
1999
2018
|
class MultipleSelectInputComponent extends AbstractListInputComponent {
|
|
2000
2019
|
constructor() {
|
|
2001
2020
|
super();
|
|
2021
|
+
this._options$ = new DelegatingListModel();
|
|
2002
2022
|
this.optionLabelFormat = (option) => (option && this.optionLabel) ? option[this.optionLabel] : option;
|
|
2003
2023
|
}
|
|
2004
2024
|
ngOnInit() {
|
|
2005
2025
|
}
|
|
2006
2026
|
}
|
|
2007
2027
|
MultipleSelectInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: MultipleSelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2008
|
-
MultipleSelectInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: MultipleSelectInputComponent, selector: "aup-multiple-select-input", inputs: { optionsModel: "optionsModel", options: "options", optionLabel: "optionLabel", optionLabelFormat: "optionLabelFormat" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [(ngModel)]=\"
|
|
2028
|
+
MultipleSelectInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: MultipleSelectInputComponent, selector: "aup-multiple-select-input", inputs: { options$: "options$", optionsModel: "optionsModel", options: "options", optionLabel: "optionLabel", optionLabelFormat: "optionLabelFormat" }, queries: [{ propertyName: "optionTemplateRef", first: true, predicate: ["optionTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [(ngModel)]=\"componentList$.value\"\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=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors$\">{{firstError$}}</mat-error>\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}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:30px}\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$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.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "component", type: i4$3.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }] });
|
|
2009
2029
|
__decorate([
|
|
2010
|
-
TrackExternal(),
|
|
2030
|
+
TrackExternal({ delegateTo: "_options$" }),
|
|
2031
|
+
__metadata("design:type", ListModel)
|
|
2032
|
+
], MultipleSelectInputComponent.prototype, "options$", void 0);
|
|
2033
|
+
__decorate([
|
|
2034
|
+
TrackExternal({ delegateTo: "_options$" }),
|
|
2011
2035
|
__metadata("design:type", ListModel)
|
|
2012
2036
|
], MultipleSelectInputComponent.prototype, "optionsModel", void 0);
|
|
2013
2037
|
__decorate([
|
|
@@ -2016,8 +2040,10 @@ __decorate([
|
|
|
2016
2040
|
], MultipleSelectInputComponent.prototype, "options", void 0);
|
|
2017
2041
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: MultipleSelectInputComponent, decorators: [{
|
|
2018
2042
|
type: Component,
|
|
2019
|
-
args: [{ selector: 'aup-multiple-select-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [(ngModel)]=\"
|
|
2020
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
2043
|
+
args: [{ selector: 'aup-multiple-select-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n multiple\n [(ngModel)]=\"componentList$.value\"\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=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors$\">{{firstError$}}</mat-error>\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}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:30px}\n"] }]
|
|
2044
|
+
}], ctorParameters: function () { return []; }, propDecorators: { options$: [{
|
|
2045
|
+
type: Input
|
|
2046
|
+
}], optionsModel: [{
|
|
2021
2047
|
type: Input
|
|
2022
2048
|
}], options: [{
|
|
2023
2049
|
type: Input
|
|
@@ -2040,10 +2066,10 @@ class NumberInputComponent extends AbstractValueInputComponent {
|
|
|
2040
2066
|
}
|
|
2041
2067
|
}
|
|
2042
2068
|
NumberInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: NumberInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2043
|
-
NumberInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: NumberInputComponent, selector: "aup-number-input", inputs: { autocomplete: "autocomplete", min: "min", max: "max", iconPrefix: "iconPrefix" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"
|
|
2069
|
+
NumberInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: NumberInputComponent, selector: "aup-number-input", inputs: { autocomplete: "autocomplete", min: "min", max: "max", iconPrefix: "iconPrefix" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\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 [min]=\"min\"\n [max]=\"max\"\n >\n <mat-hint *ngIf=\"hint && !dense\" >{{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", styles: [""], dependencies: [{ 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.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.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i4$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: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
2044
2070
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: NumberInputComponent, decorators: [{
|
|
2045
2071
|
type: Component,
|
|
2046
|
-
args: [{ selector: 'aup-number-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"
|
|
2072
|
+
args: [{ selector: 'aup-number-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\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 [min]=\"min\"\n [max]=\"max\"\n >\n <mat-hint *ngIf=\"hint && !dense\" >{{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" }]
|
|
2047
2073
|
}], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
|
|
2048
2074
|
type: Input
|
|
2049
2075
|
}], min: [{
|
|
@@ -2062,10 +2088,10 @@ class PasswordInputComponent extends AbstractValueInputComponent {
|
|
|
2062
2088
|
}
|
|
2063
2089
|
}
|
|
2064
2090
|
PasswordInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: PasswordInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2065
|
-
PasswordInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: PasswordInputComponent, selector: "aup-password-input", inputs: { autocomplete: "autocomplete" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"
|
|
2091
|
+
PasswordInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: PasswordInputComponent, selector: "aup-password-input", inputs: { autocomplete: "autocomplete" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\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=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors$\">{{firstError$}}</mat-error>\n</mat-form-field>\n\n", styles: [""], dependencies: [{ 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.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$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: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }] });
|
|
2066
2092
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: PasswordInputComponent, decorators: [{
|
|
2067
2093
|
type: Component,
|
|
2068
|
-
args: [{ selector: 'aup-password-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"
|
|
2094
|
+
args: [{ selector: 'aup-password-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\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=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors$\">{{firstError$}}</mat-error>\n</mat-form-field>\n\n" }]
|
|
2069
2095
|
}], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
|
|
2070
2096
|
type: Input
|
|
2071
2097
|
}] } });
|
|
@@ -2080,15 +2106,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
2080
2106
|
class SelectInputComponent extends AbstractValueInputComponent {
|
|
2081
2107
|
constructor() {
|
|
2082
2108
|
super();
|
|
2109
|
+
this._options$ = new DelegatingListModel();
|
|
2083
2110
|
this.optionLabelFormat = (option) => (option && this.optionLabel) ? option[this.optionLabel] : option;
|
|
2084
2111
|
}
|
|
2085
2112
|
ngOnInit() {
|
|
2086
2113
|
}
|
|
2087
2114
|
}
|
|
2088
2115
|
SelectInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2089
|
-
SelectInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: SelectInputComponent, selector: "aup-select-input", inputs: { optionsModel: "optionsModel", options: "options", optionLabel: "optionLabel", allowNil: "allowNil", optionLabelFormat: "optionLabelFormat" }, 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 }], usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"
|
|
2116
|
+
SelectInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: SelectInputComponent, selector: "aup-select-input", inputs: { options$: "options$", optionsModel: "optionsModel", options: "options", optionLabel: "optionLabel", allowNil: "allowNil", optionLabelFormat: "optionLabelFormat" }, 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 }], usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select 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 >\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\" [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <mat-option *ngIf=\"allowNil\">\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 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=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors$\">{{firstError$}}</mat-error>\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 options\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(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}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "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.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "component", type: i4$3.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "directive", type: i4$3.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }] });
|
|
2090
2117
|
__decorate([
|
|
2091
|
-
TrackExternal(),
|
|
2118
|
+
TrackExternal({ delegateTo: "_options$" }),
|
|
2119
|
+
__metadata("design:type", ListModel)
|
|
2120
|
+
], SelectInputComponent.prototype, "options$", void 0);
|
|
2121
|
+
__decorate([
|
|
2122
|
+
TrackExternal({ delegateTo: "_options$" }),
|
|
2092
2123
|
__metadata("design:type", ListModel)
|
|
2093
2124
|
], SelectInputComponent.prototype, "optionsModel", void 0);
|
|
2094
2125
|
__decorate([
|
|
@@ -2097,8 +2128,10 @@ __decorate([
|
|
|
2097
2128
|
], SelectInputComponent.prototype, "options", void 0);
|
|
2098
2129
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectInputComponent, decorators: [{
|
|
2099
2130
|
type: Component,
|
|
2100
|
-
args: [{ selector: 'aup-select-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"
|
|
2101
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
2131
|
+
args: [{ selector: 'aup-select-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select 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 >\n <mat-select-trigger *ngIf=\"selectedOptionTemplateRef\">\n <ng-container [ngTemplateOutlet]=\"selectedOptionTemplateRef\" [ngTemplateOutletContext]=\"{ $implicit: componentValue$.value}\"></ng-container>\n </mat-select-trigger>\n\n <mat-option *ngIf=\"allowNil\">\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 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=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors$\">{{firstError$}}</mat-error>\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 options\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(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}.width-strut mat-label{font-size:75%}.width-strut>.item{font-size:16px;padding-left:0}\n"] }]
|
|
2132
|
+
}], ctorParameters: function () { return []; }, propDecorators: { options$: [{
|
|
2133
|
+
type: Input
|
|
2134
|
+
}], optionsModel: [{
|
|
2102
2135
|
type: Input
|
|
2103
2136
|
}], options: [{
|
|
2104
2137
|
type: Input
|
|
@@ -2124,29 +2157,29 @@ class StringInputComponent extends AbstractValueInputComponent {
|
|
|
2124
2157
|
super();
|
|
2125
2158
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
2126
2159
|
this.clearCommand = Command.create(() => {
|
|
2127
|
-
this.
|
|
2160
|
+
this.componentValue$.value = "";
|
|
2128
2161
|
});
|
|
2129
|
-
this.clearCommand.disableWhile(chain.stringValue(this.
|
|
2162
|
+
this.clearCommand.disableWhile(chain.stringValue(this.componentValue$).isBlank());
|
|
2130
2163
|
}
|
|
2131
2164
|
ngOnInit() {
|
|
2132
2165
|
}
|
|
2133
2166
|
}
|
|
2134
2167
|
StringInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: StringInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2135
|
-
StringInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: StringInputComponent, selector: "aup-string-input", inputs: { autocomplete: "autocomplete",
|
|
2168
|
+
StringInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: StringInputComponent, selector: "aup-string-input", inputs: { autocomplete: "autocomplete", enableClear$: "enableClear$", enableClear: "enableClear", iconPrefix: "iconPrefix" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\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 <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 <button mat-button mat-icon-button matSuffix *ngIf=\"enableClear\" [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.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.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i3$1.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i4$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: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }, { kind: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
|
|
2136
2169
|
__decorate([
|
|
2137
2170
|
TrackExternal({ defaultValue: false }),
|
|
2138
2171
|
__metadata("design:type", ValueModel)
|
|
2139
|
-
], StringInputComponent.prototype, "
|
|
2172
|
+
], StringInputComponent.prototype, "enableClear$", void 0);
|
|
2140
2173
|
__decorate([
|
|
2141
|
-
StoreInValueModel('
|
|
2174
|
+
StoreInValueModel('enableClear$'),
|
|
2142
2175
|
__metadata("design:type", Boolean)
|
|
2143
2176
|
], StringInputComponent.prototype, "enableClear", void 0);
|
|
2144
2177
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: StringInputComponent, decorators: [{
|
|
2145
2178
|
type: Component,
|
|
2146
|
-
args: [{ selector: 'aup-string-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [attr.autocomplete]=\"autocomplete\"\n [(ngModel)]=\"
|
|
2179
|
+
args: [{ selector: 'aup-string-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\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 <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 <button mat-button mat-icon-button matSuffix *ngIf=\"enableClear\" [pectinCommand]=\"clearCommand\">\n <aup-icon icon=\"mat:close\"></aup-icon>\n </button>\n</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}\n"] }]
|
|
2147
2180
|
}], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
|
|
2148
2181
|
type: Input
|
|
2149
|
-
}],
|
|
2182
|
+
}], enableClear$: [{
|
|
2150
2183
|
type: Input
|
|
2151
2184
|
}], enableClear: [{
|
|
2152
2185
|
type: Input
|
|
@@ -2166,10 +2199,10 @@ class TextInputComponent extends AbstractValueInputComponent {
|
|
|
2166
2199
|
}
|
|
2167
2200
|
}
|
|
2168
2201
|
TextInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TextInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2169
|
-
TextInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: TextInputComponent, selector: "aup-text-input", inputs: { rows: "rows", cols: "cols" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"
|
|
2202
|
+
TextInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: TextInputComponent, selector: "aup-text-input", inputs: { rows: "rows", cols: "cols" }, usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\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=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors$\">{{firstError$}}</mat-error>\n</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}\n"], dependencies: [{ 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.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$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: "directive", type: FocusBindingDirective, selector: "[pectinFocusBinding]", inputs: ["pectinFocusBinding", "focusBindingTarget"] }] });
|
|
2170
2203
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TextInputComponent, decorators: [{
|
|
2171
2204
|
type: Component,
|
|
2172
|
-
args: [{ selector: 'aup-text-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"
|
|
2205
|
+
args: [{ selector: 'aup-text-input', template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\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=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors$\">{{firstError$}}</mat-error>\n</mat-form-field>\n\n", styles: ["button[disabled]{visibility:hidden}textarea{overflow:auto}\n"] }]
|
|
2173
2206
|
}], ctorParameters: function () { return []; }, propDecorators: { rows: [{
|
|
2174
2207
|
type: Input
|
|
2175
2208
|
}], cols: [{
|
|
@@ -2569,10 +2602,13 @@ class ColumnModel extends GarbageCollector {
|
|
|
2569
2602
|
this._enableRowSelection = true;
|
|
2570
2603
|
this._flex = false;
|
|
2571
2604
|
this._defaultVisibility$ = this.registerDisposable(new DelegatingValueModel().withDefault(true));
|
|
2572
|
-
this.
|
|
2605
|
+
this._masterVisibility$ = this.registerDisposable(new DelegatingValueModel().withDefault(true));
|
|
2606
|
+
this._userVisible$ = this.registerDisposable(new DelegatingValueModel().withDefault(this._defaultVisibility$));
|
|
2573
2607
|
this.textSearchDelegate = new ColumnTextSearchWrapper();
|
|
2608
|
+
const { valueOf } = Dsl.disposeWith(this);
|
|
2574
2609
|
this.installHeaderRenderer();
|
|
2575
2610
|
this.dasherisedColumnId = Stringy.from(columnId).dasherize().toString();
|
|
2611
|
+
this.visible$ = valueOf.all(this._userVisible$, this._masterVisibility$).areTruthy();
|
|
2576
2612
|
}
|
|
2577
2613
|
installHeaderRenderer() {
|
|
2578
2614
|
this.cellHeaderRenderer(DefaultHeaderCellRendererComponent, (component, column) => {
|
|
@@ -2585,16 +2621,16 @@ class ColumnModel extends GarbageCollector {
|
|
|
2585
2621
|
isVisible() {
|
|
2586
2622
|
return this.visible$.value;
|
|
2587
2623
|
}
|
|
2588
|
-
get visible$() {
|
|
2589
|
-
return this._visible$.readonly;
|
|
2590
|
-
}
|
|
2591
2624
|
visibleWhile(visible) {
|
|
2592
|
-
this.
|
|
2625
|
+
this._userVisible$.setDelegate(visible);
|
|
2593
2626
|
return this;
|
|
2594
2627
|
}
|
|
2595
2628
|
setDefaultVisibility(visible) {
|
|
2596
2629
|
this._defaultVisibility$.setDelegate(visible);
|
|
2597
2630
|
}
|
|
2631
|
+
setMasterVisibility(visible) {
|
|
2632
|
+
this._masterVisibility$.setDelegate(visible);
|
|
2633
|
+
}
|
|
2598
2634
|
getDefaultHeaderText() {
|
|
2599
2635
|
return this.columnId;
|
|
2600
2636
|
}
|
|
@@ -2924,11 +2960,11 @@ class EditRowControls extends DisposableComponent {
|
|
|
2924
2960
|
});
|
|
2925
2961
|
this.cancelCommand = Command.create(() => {
|
|
2926
2962
|
this.editSession.dispose();
|
|
2927
|
-
}).disableWhile(this.saveCommand.busy);
|
|
2963
|
+
}).disableWhile(this.saveCommand.busy$);
|
|
2928
2964
|
}
|
|
2929
2965
|
set editSession(session) {
|
|
2930
2966
|
if (session) {
|
|
2931
|
-
session.form.disableWhile(this.saveCommand.busy);
|
|
2967
|
+
session.form.disableWhile(this.saveCommand.busy$);
|
|
2932
2968
|
}
|
|
2933
2969
|
this._session = session;
|
|
2934
2970
|
}
|
|
@@ -2962,21 +2998,25 @@ class SelectionCellComponent extends DisposableComponent {
|
|
|
2962
2998
|
constructor() {
|
|
2963
2999
|
super();
|
|
2964
3000
|
this.selectCommand = Command.create(() => {
|
|
2965
|
-
this.selectionModel
|
|
2966
|
-
});
|
|
3001
|
+
this.selectionModel.selectCommand.execute(this.row);
|
|
3002
|
+
}, { enableWhile: this.selectionModel.enabled$ });
|
|
2967
3003
|
}
|
|
2968
3004
|
isSelected() {
|
|
2969
|
-
return this.selectionModel
|
|
3005
|
+
return this.selectionModel.isSelected(this.row);
|
|
2970
3006
|
}
|
|
2971
3007
|
}
|
|
2972
3008
|
SelectionCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectionCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2973
3009
|
SelectionCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: SelectionCellComponent, selector: "aup-selection-cell", inputs: { row: "row" }, usesInheritance: true, ngImport: i0, template: "<mat-checkbox [pectinCommand]=\"selectCommand\" [checked]=\"isSelected()\" [color]=\"color\"></mat-checkbox>\n", styles: [""], dependencies: [{ kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "component", type: i4$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
|
|
3010
|
+
__decorate([
|
|
3011
|
+
TrackExternal(),
|
|
3012
|
+
__metadata("design:type", SelectionModel)
|
|
3013
|
+
], SelectionCellComponent.prototype, "selectionModel", void 0);
|
|
2974
3014
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectionCellComponent, decorators: [{
|
|
2975
3015
|
type: Component,
|
|
2976
3016
|
args: [{ selector: 'aup-selection-cell', template: "<mat-checkbox [pectinCommand]=\"selectCommand\" [checked]=\"isSelected()\" [color]=\"color\"></mat-checkbox>\n" }]
|
|
2977
3017
|
}], ctorParameters: function () { return []; }, propDecorators: { row: [{
|
|
2978
3018
|
type: Input
|
|
2979
|
-
}] } });
|
|
3019
|
+
}], selectionModel: [] } });
|
|
2980
3020
|
|
|
2981
3021
|
class SelectionHeaderCellComponent extends DisposableComponent {
|
|
2982
3022
|
constructor() {
|
|
@@ -2986,21 +3026,36 @@ class SelectionHeaderCellComponent extends DisposableComponent {
|
|
|
2986
3026
|
});
|
|
2987
3027
|
}
|
|
2988
3028
|
isSelected() {
|
|
2989
|
-
return this.
|
|
3029
|
+
return this.ifMultiSelectionModel(m => m.allSelected$.value, false);
|
|
2990
3030
|
}
|
|
2991
3031
|
isIntermediate() {
|
|
2992
|
-
return this.
|
|
3032
|
+
return this.ifMultiSelectionModel(m => m.someSelected$.value, false);
|
|
2993
3033
|
}
|
|
2994
3034
|
isVisible() {
|
|
2995
|
-
return this.enableHeaderControls && this.
|
|
3035
|
+
return this.enableHeaderControls && this.isMultiSelectionModel();
|
|
3036
|
+
}
|
|
3037
|
+
isMultiSelectionModel() {
|
|
3038
|
+
return HasDelegate.findRoot(this.selectionModel) instanceof MultipleSelectionModel;
|
|
3039
|
+
}
|
|
3040
|
+
ifMultiSelectionModel(runnable, otherwise) {
|
|
3041
|
+
if (this.isMultiSelectionModel()) {
|
|
3042
|
+
return runnable(this.selectionModel);
|
|
3043
|
+
}
|
|
3044
|
+
else {
|
|
3045
|
+
return otherwise;
|
|
3046
|
+
}
|
|
2996
3047
|
}
|
|
2997
3048
|
}
|
|
2998
3049
|
SelectionHeaderCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectionHeaderCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2999
3050
|
SelectionHeaderCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: SelectionHeaderCellComponent, selector: "aup-selection-header-cell", usesInheritance: true, ngImport: i0, template: "<mat-checkbox *ngIf=\"isVisible()\" [pectinCommand]=\"selectCommand\" [checked]=\"isSelected()\" [indeterminate]=\"this.isIntermediate()\" [color]=\"color\"></mat-checkbox>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter"] }, { kind: "component", type: i4$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
|
|
3051
|
+
__decorate([
|
|
3052
|
+
TrackExternal(),
|
|
3053
|
+
__metadata("design:type", SelectionModel)
|
|
3054
|
+
], SelectionHeaderCellComponent.prototype, "selectionModel", void 0);
|
|
3000
3055
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectionHeaderCellComponent, decorators: [{
|
|
3001
3056
|
type: Component,
|
|
3002
3057
|
args: [{ selector: 'aup-selection-header-cell', template: "<mat-checkbox *ngIf=\"isVisible()\" [pectinCommand]=\"selectCommand\" [checked]=\"isSelected()\" [indeterminate]=\"this.isIntermediate()\" [color]=\"color\"></mat-checkbox>\n" }]
|
|
3003
|
-
}], ctorParameters: function () { return []; } });
|
|
3058
|
+
}], ctorParameters: function () { return []; }, propDecorators: { selectionModel: [] } });
|
|
3004
3059
|
|
|
3005
3060
|
class ColumnListModel extends AbstractComputedListModel {
|
|
3006
3061
|
constructor() {
|
|
@@ -3271,6 +3326,7 @@ class SelectionColumnModel extends ColumnModel {
|
|
|
3271
3326
|
component.color = this._color;
|
|
3272
3327
|
}));
|
|
3273
3328
|
this.setSelectionModel(selectionModel);
|
|
3329
|
+
this.setMasterVisibility(this.selectionModel.enabled$);
|
|
3274
3330
|
}
|
|
3275
3331
|
setSelectionModel(selectionModel) {
|
|
3276
3332
|
this.selectionModel.setDelegate(selectionModel);
|
|
@@ -3352,7 +3408,9 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
3352
3408
|
this.rowSelectionDisabledOnAllColumns$ = chain(this._columnList).select(column => column.isRowSelectionEnabled()).count().equals(0);
|
|
3353
3409
|
when(chain(this._rawDataSource).first()).becomesTruthy(it => {
|
|
3354
3410
|
if (it === this.identityOf(it)) {
|
|
3355
|
-
console.warn("Table model identity function is using reference equality. This can cause lots of table re-rendering"
|
|
3411
|
+
console.warn("Table model identity function is using reference equality. This can cause lots of table re-rendering", {
|
|
3412
|
+
row: it
|
|
3413
|
+
});
|
|
3356
3414
|
}
|
|
3357
3415
|
}, { once: true });
|
|
3358
3416
|
}
|
|
@@ -3483,10 +3541,11 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
3483
3541
|
return this.isRowSelectionEnabled() && column.isRowSelectionEnabled();
|
|
3484
3542
|
}
|
|
3485
3543
|
isRowSelectionEnabled() {
|
|
3486
|
-
return this.
|
|
3544
|
+
return this.hasUserSelectionModelThatIsEnabled() && !this.rowSelectionDisabledOnAllColumns$.value;
|
|
3487
3545
|
}
|
|
3488
|
-
|
|
3489
|
-
|
|
3546
|
+
hasUserSelectionModelThatIsEnabled() {
|
|
3547
|
+
const userSelectionModel = this.selectionColumnModel?.selectionModel.getDelegate();
|
|
3548
|
+
return !!userSelectionModel && userSelectionModel.enabled$.value;
|
|
3490
3549
|
}
|
|
3491
3550
|
getSelectionModel() {
|
|
3492
3551
|
return this.selectionColumnModel?.selectionModel;
|
|
@@ -3651,7 +3710,7 @@ class TableRowMenuComponent extends DisposableComponent {
|
|
|
3651
3710
|
createMoreMenuCommand(item, value) {
|
|
3652
3711
|
const { when } = Dsl.disposeWith(this);
|
|
3653
3712
|
const command = item.factory.create(value);
|
|
3654
|
-
when(command.busy).becomesFalsey(() => {
|
|
3713
|
+
when(command.busy$).becomesFalsey(() => {
|
|
3655
3714
|
this.closeMoreMenu();
|
|
3656
3715
|
});
|
|
3657
3716
|
return command;
|
|
@@ -3794,6 +3853,11 @@ class TableModel extends AbstractTableModel {
|
|
|
3794
3853
|
this._pageController = pagedListModel.pageController;
|
|
3795
3854
|
}
|
|
3796
3855
|
}
|
|
3856
|
+
// TODO: the selection model needs the option to limit selecction to the filtered items. Currently the selection remains
|
|
3857
|
+
// when the item is no longer in the visible list of items.
|
|
3858
|
+
// addSingleSelectionColumn<Id>(options: SingleSelectionModel.Options<Row, Id>, showSelectionColumn?: ValueModel<boolean> | boolean): SingleSelectionModel<Row> {
|
|
3859
|
+
// return null;
|
|
3860
|
+
// }
|
|
3797
3861
|
addSelectionColumn(selectionModel, showSelectionColumn) {
|
|
3798
3862
|
return this._addSelectionColumn(selectionModel, showSelectionColumn);
|
|
3799
3863
|
}
|
|
@@ -3983,7 +4047,7 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
3983
4047
|
}
|
|
3984
4048
|
}
|
|
3985
4049
|
TableBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableBodyComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
3986
|
-
TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: TableBodyComponent, selector: "aup-table-body", inputs: { tableModel: "tableModel", showHeader$: "showHeader$", showHeader: "showHeader", enableScrolling: "enableScrolling" }, outputs: { visibleRowCount: "visibleRowCount" }, host: { properties: { "class.enable-scrolling": "this.enableScrolling", "class": "this.baseCssClass", "class.hide-header": "this.hideHeader" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"scroll-container\">\n <table mat-table [dataSource]=\"tableModel.visibleRows$.value\" [trackBy]=\"tableModel.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.isCursorEnabled(column)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\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)\"
|
|
4050
|
+
TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: TableBodyComponent, selector: "aup-table-body", inputs: { tableModel: "tableModel", showHeader$: "showHeader$", showHeader: "showHeader", enableScrolling: "enableScrolling" }, outputs: { visibleRowCount: "visibleRowCount" }, host: { properties: { "class.enable-scrolling": "this.enableScrolling", "class": "this.baseCssClass", "class.hide-header": "this.hideHeader" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"scroll-container\">\n <table mat-table [dataSource]=\"tableModel.visibleRows$.value\" [trackBy]=\"tableModel.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.isCursorEnabled(column)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\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.isHoverEnabled()\"\n [attr.aup-row-id]=\"tableModel.trackBy(i, row)\"\n ></tr>\n\n </table>\n</div>\n\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .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: "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.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$8.MatCell, selector: "mat-cell, td[mat-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: TableCellComponent, selector: "aup-table-cell", inputs: ["row", "column", "editSession", "tableModel"] }, { kind: "component", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: ["column"] }] });
|
|
3987
4051
|
__decorate([
|
|
3988
4052
|
TrackExternal(),
|
|
3989
4053
|
__metadata("design:type", AbstractTableModel)
|
|
@@ -3998,7 +4062,7 @@ __decorate([
|
|
|
3998
4062
|
], TableBodyComponent.prototype, "showHeader", void 0);
|
|
3999
4063
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableBodyComponent, decorators: [{
|
|
4000
4064
|
type: Component,
|
|
4001
|
-
args: [{ selector: "aup-table-body", template: "<div class=\"scroll-container\">\n <table mat-table [dataSource]=\"tableModel.visibleRows$.value\" [trackBy]=\"tableModel.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.isCursorEnabled(column)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\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)\"
|
|
4065
|
+
args: [{ selector: "aup-table-body", template: "<div class=\"scroll-container\">\n <table mat-table [dataSource]=\"tableModel.visibleRows$.value\" [trackBy]=\"tableModel.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.isCursorEnabled(column)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\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.isHoverEnabled()\"\n [attr.aup-row-id]=\"tableModel.trackBy(i, row)\"\n ></tr>\n\n </table>\n</div>\n\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}\n"] }]
|
|
4002
4066
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { tableModel: [{
|
|
4003
4067
|
type: Input
|
|
4004
4068
|
}], showHeader$: [{
|
|
@@ -4719,14 +4783,14 @@ class VerticalFocusContainerComponent extends FocusContainerComponent {
|
|
|
4719
4783
|
this.focusManager = focusManager;
|
|
4720
4784
|
}
|
|
4721
4785
|
arrowLeft(event) {
|
|
4722
|
-
if (this.leftArrowCommand.enabled
|
|
4786
|
+
if (this.leftArrowCommand.enabled$.value) {
|
|
4723
4787
|
event.preventDefault();
|
|
4724
4788
|
event.stopPropagation();
|
|
4725
4789
|
this.leftArrowCommand.execute();
|
|
4726
4790
|
}
|
|
4727
4791
|
}
|
|
4728
4792
|
arrowRight(event) {
|
|
4729
|
-
if (this.rightArrowCommand.enabled
|
|
4793
|
+
if (this.rightArrowCommand.enabled$.value) {
|
|
4730
4794
|
event.preventDefault();
|
|
4731
4795
|
event.stopPropagation();
|
|
4732
4796
|
this.rightArrowCommand.execute();
|
|
@@ -5257,7 +5321,7 @@ class Activity extends DisposableComponent {
|
|
|
5257
5321
|
this._focused$ = this.registerDisposable(new DelegatingValueModel());
|
|
5258
5322
|
this._ready$ = new MutableValueModel(false);
|
|
5259
5323
|
this.class = "aup-activity";
|
|
5260
|
-
this.busyWhile(this.confirmCommand.busy);
|
|
5324
|
+
this.busyWhile(this.confirmCommand.busy$);
|
|
5261
5325
|
}
|
|
5262
5326
|
get isFocused() {
|
|
5263
5327
|
return this._focused$.value;
|
|
@@ -8205,7 +8269,7 @@ class InputActivity extends Activity {
|
|
|
8205
8269
|
this.cancelCommand = Command.create(() => {
|
|
8206
8270
|
this.cancel();
|
|
8207
8271
|
});
|
|
8208
|
-
this.busyWhile(this.confirmCommand.busy);
|
|
8272
|
+
this.busyWhile(this.confirmCommand.busy$);
|
|
8209
8273
|
this.onActivityReady(() => this.valueModel.focusContext.requestFocus());
|
|
8210
8274
|
}
|
|
8211
8275
|
get layout() {
|
|
@@ -8215,7 +8279,7 @@ class InputActivity extends Activity {
|
|
|
8215
8279
|
return this.activityData.cssClassName ?? '';
|
|
8216
8280
|
}
|
|
8217
8281
|
onEscape() {
|
|
8218
|
-
if (this.shouldCancelOnEscape() && this.cancelCommand.enabled
|
|
8282
|
+
if (this.shouldCancelOnEscape() && this.cancelCommand.enabled$.value) {
|
|
8219
8283
|
this.cancelCommand.execute();
|
|
8220
8284
|
}
|
|
8221
8285
|
}
|
|
@@ -8255,7 +8319,7 @@ class StringInputActivity extends InputActivity {
|
|
|
8255
8319
|
}
|
|
8256
8320
|
StringInputActivity.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: StringInputActivity, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
8257
8321
|
StringInputActivity.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: StringInputActivity, selector: "aup-string-input-activity", usesInheritance: true, ngImport: i0, template: `
|
|
8258
|
-
<aup-string-input [
|
|
8322
|
+
<aup-string-input [value$]="valueModel"
|
|
8259
8323
|
[label]="activityData.label"
|
|
8260
8324
|
[placeholder]="activityData.placeholder"
|
|
8261
8325
|
[command.enter]="confirmCommand"
|
|
@@ -8264,13 +8328,13 @@ StringInputActivity.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
8264
8328
|
[confirmFace]="confirmFace"
|
|
8265
8329
|
[cancelFace]="cancelFace"
|
|
8266
8330
|
></aup-activity-actions>
|
|
8267
|
-
`, isInline: true, dependencies: [{ kind: "component", type: StringInputComponent, selector: "aup-string-input", inputs: ["autocomplete", "
|
|
8331
|
+
`, isInline: true, dependencies: [{ kind: "component", type: StringInputComponent, selector: "aup-string-input", inputs: ["autocomplete", "enableClear$", "enableClear", "iconPrefix"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align"] }] });
|
|
8268
8332
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: StringInputActivity, decorators: [{
|
|
8269
8333
|
type: Component,
|
|
8270
8334
|
args: [{
|
|
8271
8335
|
selector: 'aup-string-input-activity',
|
|
8272
8336
|
template: `
|
|
8273
|
-
<aup-string-input [
|
|
8337
|
+
<aup-string-input [value$]="valueModel"
|
|
8274
8338
|
[label]="activityData.label"
|
|
8275
8339
|
[placeholder]="activityData.placeholder"
|
|
8276
8340
|
[command.enter]="confirmCommand"
|
|
@@ -8299,7 +8363,7 @@ class SelectInputActivity extends InputActivity {
|
|
|
8299
8363
|
}
|
|
8300
8364
|
SelectInputActivity.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectInputActivity, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
8301
8365
|
SelectInputActivity.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: SelectInputActivity, selector: "aup-select-input-activity", usesInheritance: true, ngImport: i0, template: `
|
|
8302
|
-
<aup-select-input [
|
|
8366
|
+
<aup-select-input [value$]="valueModel"
|
|
8303
8367
|
[label]="activityData.label"
|
|
8304
8368
|
[placeholder]="activityData.placeholder"
|
|
8305
8369
|
[command.enter]="confirmCommand"
|
|
@@ -8311,13 +8375,13 @@ SelectInputActivity.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
8311
8375
|
[confirmFace]="confirmFace"
|
|
8312
8376
|
[cancelFace]="cancelFace"
|
|
8313
8377
|
></aup-activity-actions>
|
|
8314
|
-
`, isInline: true, dependencies: [{ kind: "component", type: SelectInputComponent, selector: "aup-select-input", inputs: ["optionsModel", "options", "optionLabel", "allowNil", "optionLabelFormat"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align"] }] });
|
|
8378
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SelectInputComponent, selector: "aup-select-input", inputs: ["options$", "optionsModel", "options", "optionLabel", "allowNil", "optionLabelFormat"] }, { kind: "component", type: ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align"] }] });
|
|
8315
8379
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectInputActivity, decorators: [{
|
|
8316
8380
|
type: Component,
|
|
8317
8381
|
args: [{
|
|
8318
8382
|
selector: 'aup-select-input-activity',
|
|
8319
8383
|
template: `
|
|
8320
|
-
<aup-select-input [
|
|
8384
|
+
<aup-select-input [value$]="valueModel"
|
|
8321
8385
|
[label]="activityData.label"
|
|
8322
8386
|
[placeholder]="activityData.placeholder"
|
|
8323
8387
|
[command.enter]="confirmCommand"
|
|
@@ -8542,7 +8606,7 @@ class InlineStringEditorComponent extends DisposableComponent {
|
|
|
8542
8606
|
this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
|
|
8543
8607
|
when(this.editorModel.editing).becomesTruthy(() => {
|
|
8544
8608
|
this.editCommand.execute();
|
|
8545
|
-
}, { asLongAs: this.editCommand.enabled });
|
|
8609
|
+
}, { asLongAs: this.editCommand.enabled$ });
|
|
8546
8610
|
when(this.editorModel.editing).becomesFalsey(() => this.cancelEdit());
|
|
8547
8611
|
this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
|
|
8548
8612
|
// deviceDescription.isNil()
|
|
@@ -8572,7 +8636,7 @@ class InlineStringEditorComponent extends DisposableComponent {
|
|
|
8572
8636
|
}
|
|
8573
8637
|
}
|
|
8574
8638
|
startEdit() {
|
|
8575
|
-
if (!this.isEditing() && this.editCommand.enabled
|
|
8639
|
+
if (!this.isEditing() && this.editCommand.enabled$.value) {
|
|
8576
8640
|
this.editCommand.execute();
|
|
8577
8641
|
}
|
|
8578
8642
|
}
|
|
@@ -8584,7 +8648,7 @@ class InlineStringEditorComponent extends DisposableComponent {
|
|
|
8584
8648
|
}
|
|
8585
8649
|
}
|
|
8586
8650
|
InlineStringEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: InlineStringEditorComponent, deps: [{ token: InteractionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
8587
|
-
InlineStringEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: InlineStringEditorComponent, selector: "aup-inline-string-editor", inputs: { editorModel: "editorModel", facesModel: "facesModel", faces: "faces", label: "label", placeHolder: "placeHolder", placeHolderModel: "placeHolderModel" }, viewQueries: [{ propertyName: "interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"container\" *ngIf=\"!editorModel.isEditing()\">\n <mat-form-field appearance=\"standard\" 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
|
|
8651
|
+
InlineStringEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: InlineStringEditorComponent, selector: "aup-inline-string-editor", inputs: { editorModel: "editorModel", facesModel: "facesModel", faces: "faces", label: "label", placeHolder: "placeHolder", placeHolderModel: "placeHolderModel" }, viewQueries: [{ propertyName: "interactionContext", first: true, predicate: InPlaceInteractionContextComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"container\" *ngIf=\"!editorModel.isEditing()\">\n <mat-form-field appearance=\"standard\" 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\" [faceModel]=\"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", "faceModel", "face", "busyFaceModel", "busyFace", "alignFace"] }, { 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: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$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: InPlaceInteractionContextComponent, selector: "aup-in-place-interaction-context", inputs: ["animateFirstActivity", "syncWithRoutes"] }] });
|
|
8588
8652
|
__decorate([
|
|
8589
8653
|
TrackExternal(),
|
|
8590
8654
|
__metadata("design:type", InlineEditorModel)
|
|
@@ -8607,7 +8671,7 @@ __decorate([
|
|
|
8607
8671
|
], InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
|
|
8608
8672
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: InlineStringEditorComponent, decorators: [{
|
|
8609
8673
|
type: Component,
|
|
8610
|
-
args: [{ selector: 'aup-inline-string-editor', template: "<div class=\"container\" *ngIf=\"!editorModel.isEditing()\">\n <mat-form-field appearance=\"standard\" 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
|
|
8674
|
+
args: [{ selector: 'aup-inline-string-editor', template: "<div class=\"container\" *ngIf=\"!editorModel.isEditing()\">\n <mat-form-field appearance=\"standard\" 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\" [faceModel]=\"editFaceModel\"></aup-command>\n</div>\n<aup-in-place-interaction-context [animateFirstActivity]=\"false\"></aup-in-place-interaction-context>\n" }]
|
|
8611
8675
|
}], ctorParameters: function () { return [{ type: InteractionService }]; }, propDecorators: { editorModel: [{
|
|
8612
8676
|
type: Input
|
|
8613
8677
|
}], facesModel: [{
|