@coolon/angular-ui-powerups 14.8.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 +5 -4
- 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-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 +175 -122
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +175 -118
- 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, __awaiter } from 'tslib';
|
|
44
44
|
import escapeStringRegexp from 'escape-string-regexp';
|
|
45
45
|
import { isEmpty, isString, isFunction, isNil, isInteger, isEqual, uniq, first, isObject, isNumber, isNaN as isNaN$1 } from 'lodash';
|
|
@@ -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
|
}
|
|
@@ -940,10 +940,10 @@ class CardContainerComponent extends AbstractCardContainerComponent {
|
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
942
|
CardContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CardContainerComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
943
|
-
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
|
|
943
|
+
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"] }] });
|
|
944
944
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CardContainerComponent, decorators: [{
|
|
945
945
|
type: Component,
|
|
946
|
-
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
|
|
946
|
+
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"] }]
|
|
947
947
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { columnCount: [{
|
|
948
948
|
type: Input
|
|
949
949
|
}], enabledScroll: [{
|
|
@@ -1024,10 +1024,10 @@ class CardStackComponent extends AbstractCardContainerComponent {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
1026
|
CardStackComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CardStackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1027
|
-
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
|
|
1027
|
+
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"] }] });
|
|
1028
1028
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CardStackComponent, decorators: [{
|
|
1029
1029
|
type: Component,
|
|
1030
|
-
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
|
|
1030
|
+
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"] }]
|
|
1031
1031
|
}], ctorParameters: function () { return []; } });
|
|
1032
1032
|
|
|
1033
1033
|
const HorizontalAlignment = Enum({
|
|
@@ -1072,7 +1072,7 @@ class CommandComponent extends PopupAwareComponent {
|
|
|
1072
1072
|
this.CommandFace = CommandFace;
|
|
1073
1073
|
this.alignFace = HorizontalAlignment.CENTER;
|
|
1074
1074
|
const { chain, switchOn } = Dsl.disposeWith(this);
|
|
1075
|
-
this.faces$ = chain(this.command.busy).mapToList(busy => {
|
|
1075
|
+
this.faces$ = chain(this.command.busy$).mapToList(busy => {
|
|
1076
1076
|
return busy ?
|
|
1077
1077
|
[this.busyFaceModel.value, this.faceModel.value] :
|
|
1078
1078
|
[this.faceModel.value, this.busyFaceModel.value];
|
|
@@ -1102,7 +1102,7 @@ class CommandComponent extends PopupAwareComponent {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
1104
|
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 });
|
|
1105
|
-
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
|
|
1105
|
+
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"] }] });
|
|
1106
1106
|
__decorate([
|
|
1107
1107
|
TrackExternal(),
|
|
1108
1108
|
__metadata("design:type", Command)
|
|
@@ -1125,7 +1125,7 @@ __decorate([
|
|
|
1125
1125
|
], CommandComponent.prototype, "busyFace", void 0);
|
|
1126
1126
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CommandComponent, decorators: [{
|
|
1127
1127
|
type: Component,
|
|
1128
|
-
args: [{ selector: 'aup-command', template: "<ng-container *ngIf=\"iconOnly$.value\">\n <button mat-icon-button [pectinCommand]=\"command\" [color]=\"color$.value\" [class.busy]=\"command.busy
|
|
1128
|
+
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"] }]
|
|
1129
1129
|
}], ctorParameters: function () {
|
|
1130
1130
|
return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
1131
1131
|
type: Inject,
|
|
@@ -1387,7 +1387,7 @@ class PopupMenuRendererComponent extends DisposableComponent {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
1389
|
isCommandEnabled(data) {
|
|
1390
|
-
return this.isCommand(data) && data.command.enabled
|
|
1390
|
+
return this.isCommand(data) && data.command.enabled$.value;
|
|
1391
1391
|
}
|
|
1392
1392
|
// @Trace()
|
|
1393
1393
|
onCommandFired() {
|
|
@@ -1645,7 +1645,7 @@ class AbstractInputComponent extends DisposableComponent {
|
|
|
1645
1645
|
const self = this;
|
|
1646
1646
|
this.errorStateMatcher = {
|
|
1647
1647
|
isErrorState(control, form) {
|
|
1648
|
-
return self.hasErrors();
|
|
1648
|
+
return self.hasErrors$();
|
|
1649
1649
|
}
|
|
1650
1650
|
};
|
|
1651
1651
|
}
|
|
@@ -1669,29 +1669,29 @@ class AbstractInputComponent extends DisposableComponent {
|
|
|
1669
1669
|
this.escapeKey.emit();
|
|
1670
1670
|
}
|
|
1671
1671
|
safelyInvoke(command) {
|
|
1672
|
-
if (command && command.enabled
|
|
1672
|
+
if (command && command.enabled$.value) {
|
|
1673
1673
|
command.execute();
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
1676
|
ngOnInit() {
|
|
1677
1677
|
}
|
|
1678
1678
|
isEnabled() {
|
|
1679
|
-
return this.enabled
|
|
1679
|
+
return this.enabled$.value;
|
|
1680
1680
|
}
|
|
1681
|
-
get enabled() {
|
|
1682
|
-
return this.
|
|
1681
|
+
get enabled$() {
|
|
1682
|
+
return this.formValue$.enabled;
|
|
1683
1683
|
}
|
|
1684
|
-
hasErrors() {
|
|
1685
|
-
return !this.errorList
|
|
1684
|
+
hasErrors$() {
|
|
1685
|
+
return !this.errorList$.query().isEmpty();
|
|
1686
1686
|
}
|
|
1687
|
-
get errorList() {
|
|
1688
|
-
return this.
|
|
1687
|
+
get errorList$() {
|
|
1688
|
+
return this.formValue$.errorList;
|
|
1689
1689
|
}
|
|
1690
|
-
get firstError() {
|
|
1691
|
-
return this.hasErrors() ? this.errorList
|
|
1690
|
+
get firstError$() {
|
|
1691
|
+
return this.hasErrors$() ? this.errorList$.value[0] : null;
|
|
1692
1692
|
}
|
|
1693
1693
|
get focusContext() {
|
|
1694
|
-
return this.
|
|
1694
|
+
return this.formValue$.focusContext;
|
|
1695
1695
|
}
|
|
1696
1696
|
get floatLabel() {
|
|
1697
1697
|
return this.dense ? 'never' : this.userFloatLabel;
|
|
@@ -1777,14 +1777,14 @@ class AbstractListInputComponent extends AbstractInputComponent {
|
|
|
1777
1777
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
1778
1778
|
*/
|
|
1779
1779
|
// We have to register it as a disposable so it ditches any listeners when we're disposed.
|
|
1780
|
-
this.
|
|
1781
|
-
this.
|
|
1782
|
-
this.setValueIsInProgress = new Guard();
|
|
1780
|
+
this.formValue$ = this.registerDisposable(new Form.DelegatingFormListModel());
|
|
1781
|
+
this.componentList$ = new MutableListModel();
|
|
1782
|
+
this.setValueIsInProgress$ = new Guard();
|
|
1783
1783
|
this.valueChange = new EventEmitter();
|
|
1784
1784
|
const { when, valueOf, chain } = Dsl.disposeWith(this);
|
|
1785
|
-
const binding = new Binding.Identity(this.
|
|
1786
|
-
const inExternalChange = valueOf.any(this.setValueIsInProgress
|
|
1787
|
-
when(this.
|
|
1785
|
+
const binding = new Binding.Identity(this.formValue$, this.componentList$).writeRight();
|
|
1786
|
+
const inExternalChange = valueOf.any(this.setValueIsInProgress$, chain(binding.direction).equals(Binding.Direction.RIGHT)).areTruthy();
|
|
1787
|
+
when(this.componentList$).changes((is, was) => {
|
|
1788
1788
|
this.valueChange.emit(is);
|
|
1789
1789
|
this.onValueEditedListeners.fire(l => l(is, was));
|
|
1790
1790
|
}, {
|
|
@@ -1794,33 +1794,39 @@ class AbstractListInputComponent extends AbstractInputComponent {
|
|
|
1794
1794
|
// fashion, i.e. [(value)]="..."
|
|
1795
1795
|
unless: inExternalChange
|
|
1796
1796
|
});
|
|
1797
|
-
DebugContext.tag(this.
|
|
1797
|
+
DebugContext.tag(this.formValue$, `${this.constructor.name}.formValueModel`);
|
|
1798
1798
|
}
|
|
1799
1799
|
// We add support for simple direct display of values by allowing components to be used
|
|
1800
1800
|
// by `component.value = ...` This use of the component without a value model in tables
|
|
1801
1801
|
// and the like.
|
|
1802
1802
|
set value(value) {
|
|
1803
|
-
this.setValueIsInProgress
|
|
1804
|
-
if (!this.listHolder) {
|
|
1805
|
-
this.listHolder = new MutableListModel(value);
|
|
1806
|
-
this.
|
|
1803
|
+
this.setValueIsInProgress$.whileTrue(() => {
|
|
1804
|
+
if (!this.listHolder$) {
|
|
1805
|
+
this.listHolder$ = new MutableListModel(value);
|
|
1806
|
+
this.list$ = this.listHolder$;
|
|
1807
1807
|
}
|
|
1808
1808
|
else {
|
|
1809
|
-
this.listHolder
|
|
1809
|
+
this.listHolder$.value = value;
|
|
1810
1810
|
}
|
|
1811
1811
|
});
|
|
1812
1812
|
}
|
|
1813
1813
|
}
|
|
1814
1814
|
AbstractListInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbstractListInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1815
|
-
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 });
|
|
1815
|
+
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 });
|
|
1816
1816
|
__decorate([
|
|
1817
|
-
TrackExternal({ delegateTo: "
|
|
1817
|
+
TrackExternal({ delegateTo: "formValue$" }),
|
|
1818
|
+
__metadata("design:type", Object)
|
|
1819
|
+
], AbstractListInputComponent.prototype, "list$", void 0);
|
|
1820
|
+
__decorate([
|
|
1821
|
+
TrackExternal({ delegateTo: "formValue$" }),
|
|
1818
1822
|
__metadata("design:type", Object)
|
|
1819
1823
|
], AbstractListInputComponent.prototype, "listModel", void 0);
|
|
1820
1824
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbstractListInputComponent, decorators: [{
|
|
1821
1825
|
type: Component,
|
|
1822
1826
|
args: [{ template: "" }]
|
|
1823
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
1827
|
+
}], ctorParameters: function () { return []; }, propDecorators: { list$: [{
|
|
1828
|
+
type: Input
|
|
1829
|
+
}], listModel: [{
|
|
1824
1830
|
type: Input
|
|
1825
1831
|
}], value: [{
|
|
1826
1832
|
type: Input
|
|
@@ -1835,21 +1841,21 @@ class AbstractValueInputComponent extends AbstractInputComponent {
|
|
|
1835
1841
|
* A backing model for all our @Input() valueModel properties which should be defined as follows.
|
|
1836
1842
|
*
|
|
1837
1843
|
* @Input() @TrackExternal({useExisting: "inputModel"})
|
|
1838
|
-
*
|
|
1844
|
+
* value$: DirtyTrackingForm.ValueModel<string> | MutableValueModel<string>;
|
|
1839
1845
|
*
|
|
1840
1846
|
* This approach allows the input to accept plain or form models but all backed by a form
|
|
1841
1847
|
* friendly delegate. We have to use an existing delegate for union types as pectin just
|
|
1842
1848
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
1843
1849
|
*/
|
|
1844
1850
|
// We have to register it as a disposable so it ditches any listeners when we're disposed.
|
|
1845
|
-
this.
|
|
1846
|
-
this.setValueInProgress = new Guard();
|
|
1847
|
-
this.
|
|
1851
|
+
this.formValue$ = this.registerDisposable(new Form.DelegatingFormValueModel());
|
|
1852
|
+
this.setValueInProgress$ = new Guard();
|
|
1853
|
+
this.componentValue$ = new MutableValueModel();
|
|
1848
1854
|
this.valueChange = new EventEmitter();
|
|
1849
1855
|
const { when, chain, valueOf } = Dsl.disposeWith(this);
|
|
1850
|
-
const binding = new Binding.Identity(this.
|
|
1851
|
-
const inExternalChange = valueOf.any(this.setValueInProgress
|
|
1852
|
-
when(this.
|
|
1856
|
+
const binding = new Binding.Identity(this.formValue$, this.componentValue$).writeRight();
|
|
1857
|
+
const inExternalChange = valueOf.any(this.setValueInProgress$, chain(binding.direction).equals(Binding.Direction.RIGHT)).areTruthy();
|
|
1858
|
+
when(this.componentValue$).changes((is, was) => {
|
|
1853
1859
|
this.valueChange.emit(is);
|
|
1854
1860
|
this.onValueEditedListeners.fire(l => l(is, was));
|
|
1855
1861
|
}, {
|
|
@@ -1859,33 +1865,39 @@ class AbstractValueInputComponent extends AbstractInputComponent {
|
|
|
1859
1865
|
// fashion, i.e. [(value)]="..."
|
|
1860
1866
|
unless: inExternalChange
|
|
1861
1867
|
});
|
|
1862
|
-
DebugContext.tag(this.
|
|
1868
|
+
DebugContext.tag(this.formValue$, `${this.constructor.name}.formValueModel`);
|
|
1863
1869
|
}
|
|
1864
1870
|
// We add support for simple direct display of values by allowing components to be used
|
|
1865
1871
|
// by `component.value = ...` This use of the component without a value model in tables
|
|
1866
1872
|
// and the like.
|
|
1867
1873
|
set value(value) {
|
|
1868
|
-
this.setValueInProgress
|
|
1869
|
-
if (!this.plainValueHolder) {
|
|
1870
|
-
this.plainValueHolder = new MutableValueModel(value);
|
|
1871
|
-
this.
|
|
1874
|
+
this.setValueInProgress$.whileTrue(() => {
|
|
1875
|
+
if (!this.plainValueHolder$) {
|
|
1876
|
+
this.plainValueHolder$ = new MutableValueModel(value);
|
|
1877
|
+
this.value$ = this.plainValueHolder$;
|
|
1872
1878
|
}
|
|
1873
1879
|
else {
|
|
1874
|
-
this.plainValueHolder
|
|
1880
|
+
this.plainValueHolder$.value = value;
|
|
1875
1881
|
}
|
|
1876
1882
|
});
|
|
1877
1883
|
}
|
|
1878
1884
|
}
|
|
1879
1885
|
AbstractValueInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbstractValueInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1880
|
-
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 });
|
|
1886
|
+
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 });
|
|
1887
|
+
__decorate([
|
|
1888
|
+
TrackExternal({ delegateTo: 'formValue$' }),
|
|
1889
|
+
__metadata("design:type", Object)
|
|
1890
|
+
], AbstractValueInputComponent.prototype, "value$", void 0);
|
|
1881
1891
|
__decorate([
|
|
1882
|
-
TrackExternal({ delegateTo: '
|
|
1892
|
+
TrackExternal({ delegateTo: 'formValue$' }),
|
|
1883
1893
|
__metadata("design:type", Object)
|
|
1884
1894
|
], AbstractValueInputComponent.prototype, "valueModel", void 0);
|
|
1885
1895
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbstractValueInputComponent, decorators: [{
|
|
1886
1896
|
type: Component,
|
|
1887
1897
|
args: [{ template: '' }]
|
|
1888
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
1898
|
+
}], ctorParameters: function () { return []; }, propDecorators: { value$: [{
|
|
1899
|
+
type: Input
|
|
1900
|
+
}], valueModel: [{
|
|
1889
1901
|
type: Input
|
|
1890
1902
|
}], value: [{
|
|
1891
1903
|
type: Input
|
|
@@ -1902,6 +1914,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
1902
1914
|
class AutocompleteInputComponent extends AbstractValueInputComponent {
|
|
1903
1915
|
constructor() {
|
|
1904
1916
|
super();
|
|
1917
|
+
this._options$ = new DelegatingListModel();
|
|
1905
1918
|
this.autoActiveFirstOption = true;
|
|
1906
1919
|
this.autoFilter = true;
|
|
1907
1920
|
this.inSearchUpdate$ = new Guard();
|
|
@@ -1916,7 +1929,7 @@ class AutocompleteInputComponent extends AbstractValueInputComponent {
|
|
|
1916
1929
|
};
|
|
1917
1930
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
1918
1931
|
const filter$ = chain(this.filterValue).map(v => this.filterFactory(v), { allowNil: true });
|
|
1919
|
-
this.filteredOptions = chain(this.
|
|
1932
|
+
this.filteredOptions = chain(this.options$)
|
|
1920
1933
|
.select(option => !this.autoFilter || filter$.value(option), { dependsOn: filter$ });
|
|
1921
1934
|
}
|
|
1922
1935
|
ngOnInit() {
|
|
@@ -1942,18 +1955,22 @@ class AutocompleteInputComponent extends AbstractValueInputComponent {
|
|
|
1942
1955
|
this.inSearchUpdate$.whileTrue(() => {
|
|
1943
1956
|
this.rawTextContent$.value = undefined;
|
|
1944
1957
|
// @ts-ignore
|
|
1945
|
-
this.
|
|
1958
|
+
this.value$["value"] = $event.option.value;
|
|
1946
1959
|
});
|
|
1947
1960
|
}
|
|
1948
1961
|
}
|
|
1949
1962
|
AutocompleteInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AutocompleteInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1950
|
-
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]=\"
|
|
1963
|
+
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"] }] });
|
|
1951
1964
|
__decorate([
|
|
1952
1965
|
TrackExternal(),
|
|
1953
1966
|
__metadata("design:type", MutableValueModel)
|
|
1954
1967
|
], AutocompleteInputComponent.prototype, "rawTextContent$", void 0);
|
|
1955
1968
|
__decorate([
|
|
1956
|
-
TrackExternal(),
|
|
1969
|
+
TrackExternal({ delegateTo: "_options$" }),
|
|
1970
|
+
__metadata("design:type", ListModel)
|
|
1971
|
+
], AutocompleteInputComponent.prototype, "options$", void 0);
|
|
1972
|
+
__decorate([
|
|
1973
|
+
TrackExternal({ delegateTo: "_options$" }),
|
|
1957
1974
|
__metadata("design:type", ListModel)
|
|
1958
1975
|
], AutocompleteInputComponent.prototype, "optionsModel", void 0);
|
|
1959
1976
|
__decorate([
|
|
@@ -1962,9 +1979,11 @@ __decorate([
|
|
|
1962
1979
|
], AutocompleteInputComponent.prototype, "options", void 0);
|
|
1963
1980
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AutocompleteInputComponent, decorators: [{
|
|
1964
1981
|
type: Component,
|
|
1965
|
-
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]=\"
|
|
1982
|
+
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"] }]
|
|
1966
1983
|
}], ctorParameters: function () { return []; }, propDecorators: { rawTextContent$: [{
|
|
1967
1984
|
type: Input
|
|
1985
|
+
}], options$: [{
|
|
1986
|
+
type: Input
|
|
1968
1987
|
}], optionsModel: [{
|
|
1969
1988
|
type: Input
|
|
1970
1989
|
}], options: [{
|
|
@@ -2004,10 +2023,10 @@ class CheckboxInputComponent extends AbstractValueInputComponent {
|
|
|
2004
2023
|
}
|
|
2005
2024
|
}
|
|
2006
2025
|
CheckboxInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CheckboxInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2007
|
-
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)]=\"
|
|
2026
|
+
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"] }] });
|
|
2008
2027
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: CheckboxInputComponent, decorators: [{
|
|
2009
2028
|
type: Component,
|
|
2010
|
-
args: [{ selector: 'aup-checkbox-input', template: "<!-- TODO: add focus binding -->\n<mat-checkbox\n [(ngModel)]=\"
|
|
2029
|
+
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"] }]
|
|
2011
2030
|
}], ctorParameters: function () { return []; }, propDecorators: { color: [{
|
|
2012
2031
|
type: Input
|
|
2013
2032
|
}], labelPosition: [{
|
|
@@ -2024,15 +2043,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
2024
2043
|
class MultipleSelectInputComponent extends AbstractListInputComponent {
|
|
2025
2044
|
constructor() {
|
|
2026
2045
|
super();
|
|
2046
|
+
this._options$ = new DelegatingListModel();
|
|
2027
2047
|
this.optionLabelFormat = (option) => (option && this.optionLabel) ? option[this.optionLabel] : option;
|
|
2028
2048
|
}
|
|
2029
2049
|
ngOnInit() {
|
|
2030
2050
|
}
|
|
2031
2051
|
}
|
|
2032
2052
|
MultipleSelectInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: MultipleSelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2033
|
-
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)]=\"
|
|
2053
|
+
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"] }] });
|
|
2034
2054
|
__decorate([
|
|
2035
|
-
TrackExternal(),
|
|
2055
|
+
TrackExternal({ delegateTo: "_options$" }),
|
|
2056
|
+
__metadata("design:type", ListModel)
|
|
2057
|
+
], MultipleSelectInputComponent.prototype, "options$", void 0);
|
|
2058
|
+
__decorate([
|
|
2059
|
+
TrackExternal({ delegateTo: "_options$" }),
|
|
2036
2060
|
__metadata("design:type", ListModel)
|
|
2037
2061
|
], MultipleSelectInputComponent.prototype, "optionsModel", void 0);
|
|
2038
2062
|
__decorate([
|
|
@@ -2041,8 +2065,10 @@ __decorate([
|
|
|
2041
2065
|
], MultipleSelectInputComponent.prototype, "options", void 0);
|
|
2042
2066
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: MultipleSelectInputComponent, decorators: [{
|
|
2043
2067
|
type: Component,
|
|
2044
|
-
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)]=\"
|
|
2045
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
2068
|
+
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"] }]
|
|
2069
|
+
}], ctorParameters: function () { return []; }, propDecorators: { options$: [{
|
|
2070
|
+
type: Input
|
|
2071
|
+
}], optionsModel: [{
|
|
2046
2072
|
type: Input
|
|
2047
2073
|
}], options: [{
|
|
2048
2074
|
type: Input
|
|
@@ -2065,10 +2091,10 @@ class NumberInputComponent extends AbstractValueInputComponent {
|
|
|
2065
2091
|
}
|
|
2066
2092
|
}
|
|
2067
2093
|
NumberInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: NumberInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2068
|
-
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)]=\"
|
|
2094
|
+
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"] }] });
|
|
2069
2095
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: NumberInputComponent, decorators: [{
|
|
2070
2096
|
type: Component,
|
|
2071
|
-
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)]=\"
|
|
2097
|
+
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" }]
|
|
2072
2098
|
}], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
|
|
2073
2099
|
type: Input
|
|
2074
2100
|
}], min: [{
|
|
@@ -2087,10 +2113,10 @@ class PasswordInputComponent extends AbstractValueInputComponent {
|
|
|
2087
2113
|
}
|
|
2088
2114
|
}
|
|
2089
2115
|
PasswordInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: PasswordInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2090
|
-
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)]=\"
|
|
2116
|
+
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"] }] });
|
|
2091
2117
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: PasswordInputComponent, decorators: [{
|
|
2092
2118
|
type: Component,
|
|
2093
|
-
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)]=\"
|
|
2119
|
+
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" }]
|
|
2094
2120
|
}], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
|
|
2095
2121
|
type: Input
|
|
2096
2122
|
}] } });
|
|
@@ -2105,15 +2131,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
2105
2131
|
class SelectInputComponent extends AbstractValueInputComponent {
|
|
2106
2132
|
constructor() {
|
|
2107
2133
|
super();
|
|
2134
|
+
this._options$ = new DelegatingListModel();
|
|
2108
2135
|
this.optionLabelFormat = (option) => (option && this.optionLabel) ? option[this.optionLabel] : option;
|
|
2109
2136
|
}
|
|
2110
2137
|
ngOnInit() {
|
|
2111
2138
|
}
|
|
2112
2139
|
}
|
|
2113
2140
|
SelectInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2114
|
-
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)]=\"
|
|
2141
|
+
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"] }] });
|
|
2115
2142
|
__decorate([
|
|
2116
|
-
TrackExternal(),
|
|
2143
|
+
TrackExternal({ delegateTo: "_options$" }),
|
|
2144
|
+
__metadata("design:type", ListModel)
|
|
2145
|
+
], SelectInputComponent.prototype, "options$", void 0);
|
|
2146
|
+
__decorate([
|
|
2147
|
+
TrackExternal({ delegateTo: "_options$" }),
|
|
2117
2148
|
__metadata("design:type", ListModel)
|
|
2118
2149
|
], SelectInputComponent.prototype, "optionsModel", void 0);
|
|
2119
2150
|
__decorate([
|
|
@@ -2122,8 +2153,10 @@ __decorate([
|
|
|
2122
2153
|
], SelectInputComponent.prototype, "options", void 0);
|
|
2123
2154
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectInputComponent, decorators: [{
|
|
2124
2155
|
type: Component,
|
|
2125
|
-
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)]=\"
|
|
2126
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
2156
|
+
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"] }]
|
|
2157
|
+
}], ctorParameters: function () { return []; }, propDecorators: { options$: [{
|
|
2158
|
+
type: Input
|
|
2159
|
+
}], optionsModel: [{
|
|
2127
2160
|
type: Input
|
|
2128
2161
|
}], options: [{
|
|
2129
2162
|
type: Input
|
|
@@ -2149,29 +2182,29 @@ class StringInputComponent extends AbstractValueInputComponent {
|
|
|
2149
2182
|
super();
|
|
2150
2183
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
2151
2184
|
this.clearCommand = Command.create(() => {
|
|
2152
|
-
this.
|
|
2185
|
+
this.componentValue$.value = "";
|
|
2153
2186
|
});
|
|
2154
|
-
this.clearCommand.disableWhile(chain.stringValue(this.
|
|
2187
|
+
this.clearCommand.disableWhile(chain.stringValue(this.componentValue$).isBlank());
|
|
2155
2188
|
}
|
|
2156
2189
|
ngOnInit() {
|
|
2157
2190
|
}
|
|
2158
2191
|
}
|
|
2159
2192
|
StringInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: StringInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2160
|
-
StringInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: StringInputComponent, selector: "aup-string-input", inputs: { autocomplete: "autocomplete",
|
|
2193
|
+
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"] }] });
|
|
2161
2194
|
__decorate([
|
|
2162
2195
|
TrackExternal({ defaultValue: false }),
|
|
2163
2196
|
__metadata("design:type", ValueModel)
|
|
2164
|
-
], StringInputComponent.prototype, "
|
|
2197
|
+
], StringInputComponent.prototype, "enableClear$", void 0);
|
|
2165
2198
|
__decorate([
|
|
2166
|
-
StoreInValueModel('
|
|
2199
|
+
StoreInValueModel('enableClear$'),
|
|
2167
2200
|
__metadata("design:type", Boolean)
|
|
2168
2201
|
], StringInputComponent.prototype, "enableClear", void 0);
|
|
2169
2202
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: StringInputComponent, decorators: [{
|
|
2170
2203
|
type: Component,
|
|
2171
|
-
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)]=\"
|
|
2204
|
+
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"] }]
|
|
2172
2205
|
}], ctorParameters: function () { return []; }, propDecorators: { autocomplete: [{
|
|
2173
2206
|
type: Input
|
|
2174
|
-
}],
|
|
2207
|
+
}], enableClear$: [{
|
|
2175
2208
|
type: Input
|
|
2176
2209
|
}], enableClear: [{
|
|
2177
2210
|
type: Input
|
|
@@ -2191,10 +2224,10 @@ class TextInputComponent extends AbstractValueInputComponent {
|
|
|
2191
2224
|
}
|
|
2192
2225
|
}
|
|
2193
2226
|
TextInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TextInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2194
|
-
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)]=\"
|
|
2227
|
+
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"] }] });
|
|
2195
2228
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TextInputComponent, decorators: [{
|
|
2196
2229
|
type: Component,
|
|
2197
|
-
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)]=\"
|
|
2230
|
+
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"] }]
|
|
2198
2231
|
}], ctorParameters: function () { return []; }, propDecorators: { rows: [{
|
|
2199
2232
|
type: Input
|
|
2200
2233
|
}], cols: [{
|
|
@@ -2595,10 +2628,13 @@ class ColumnModel extends GarbageCollector {
|
|
|
2595
2628
|
this._enableRowSelection = true;
|
|
2596
2629
|
this._flex = false;
|
|
2597
2630
|
this._defaultVisibility$ = this.registerDisposable(new DelegatingValueModel().withDefault(true));
|
|
2598
|
-
this.
|
|
2631
|
+
this._masterVisibility$ = this.registerDisposable(new DelegatingValueModel().withDefault(true));
|
|
2632
|
+
this._userVisible$ = this.registerDisposable(new DelegatingValueModel().withDefault(this._defaultVisibility$));
|
|
2599
2633
|
this.textSearchDelegate = new ColumnTextSearchWrapper();
|
|
2634
|
+
const { valueOf } = Dsl.disposeWith(this);
|
|
2600
2635
|
this.installHeaderRenderer();
|
|
2601
2636
|
this.dasherisedColumnId = Stringy.from(columnId).dasherize().toString();
|
|
2637
|
+
this.visible$ = valueOf.all(this._userVisible$, this._masterVisibility$).areTruthy();
|
|
2602
2638
|
}
|
|
2603
2639
|
installHeaderRenderer() {
|
|
2604
2640
|
this.cellHeaderRenderer(DefaultHeaderCellRendererComponent, (component, column) => {
|
|
@@ -2612,16 +2648,16 @@ class ColumnModel extends GarbageCollector {
|
|
|
2612
2648
|
isVisible() {
|
|
2613
2649
|
return this.visible$.value;
|
|
2614
2650
|
}
|
|
2615
|
-
get visible$() {
|
|
2616
|
-
return this._visible$.readonly;
|
|
2617
|
-
}
|
|
2618
2651
|
visibleWhile(visible) {
|
|
2619
|
-
this.
|
|
2652
|
+
this._userVisible$.setDelegate(visible);
|
|
2620
2653
|
return this;
|
|
2621
2654
|
}
|
|
2622
2655
|
setDefaultVisibility(visible) {
|
|
2623
2656
|
this._defaultVisibility$.setDelegate(visible);
|
|
2624
2657
|
}
|
|
2658
|
+
setMasterVisibility(visible) {
|
|
2659
|
+
this._masterVisibility$.setDelegate(visible);
|
|
2660
|
+
}
|
|
2625
2661
|
getDefaultHeaderText() {
|
|
2626
2662
|
return this.columnId;
|
|
2627
2663
|
}
|
|
@@ -2931,11 +2967,11 @@ class EditRowControls extends DisposableComponent {
|
|
|
2931
2967
|
}));
|
|
2932
2968
|
this.cancelCommand = Command.create(() => {
|
|
2933
2969
|
this.editSession.dispose();
|
|
2934
|
-
}).disableWhile(this.saveCommand.busy);
|
|
2970
|
+
}).disableWhile(this.saveCommand.busy$);
|
|
2935
2971
|
}
|
|
2936
2972
|
set editSession(session) {
|
|
2937
2973
|
if (session) {
|
|
2938
|
-
session.form.disableWhile(this.saveCommand.busy);
|
|
2974
|
+
session.form.disableWhile(this.saveCommand.busy$);
|
|
2939
2975
|
}
|
|
2940
2976
|
this._session = session;
|
|
2941
2977
|
}
|
|
@@ -2970,23 +3006,25 @@ class SelectionCellComponent extends DisposableComponent {
|
|
|
2970
3006
|
constructor() {
|
|
2971
3007
|
super();
|
|
2972
3008
|
this.selectCommand = Command.create(() => {
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
});
|
|
3009
|
+
this.selectionModel.selectCommand.execute(this.row);
|
|
3010
|
+
}, { enableWhile: this.selectionModel.enabled$ });
|
|
2976
3011
|
}
|
|
2977
3012
|
isSelected() {
|
|
2978
|
-
|
|
2979
|
-
return (_a = this.selectionModel) === null || _a === void 0 ? void 0 : _a.isSelected(this.row);
|
|
3013
|
+
return this.selectionModel.isSelected(this.row);
|
|
2980
3014
|
}
|
|
2981
3015
|
}
|
|
2982
3016
|
SelectionCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectionCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2983
3017
|
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"] }] });
|
|
3018
|
+
__decorate([
|
|
3019
|
+
TrackExternal(),
|
|
3020
|
+
__metadata("design:type", SelectionModel)
|
|
3021
|
+
], SelectionCellComponent.prototype, "selectionModel", void 0);
|
|
2984
3022
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectionCellComponent, decorators: [{
|
|
2985
3023
|
type: Component,
|
|
2986
3024
|
args: [{ selector: 'aup-selection-cell', template: "<mat-checkbox [pectinCommand]=\"selectCommand\" [checked]=\"isSelected()\" [color]=\"color\"></mat-checkbox>\n" }]
|
|
2987
3025
|
}], ctorParameters: function () { return []; }, propDecorators: { row: [{
|
|
2988
3026
|
type: Input
|
|
2989
|
-
}] } });
|
|
3027
|
+
}], selectionModel: [] } });
|
|
2990
3028
|
|
|
2991
3029
|
class SelectionHeaderCellComponent extends DisposableComponent {
|
|
2992
3030
|
constructor() {
|
|
@@ -2996,23 +3034,36 @@ class SelectionHeaderCellComponent extends DisposableComponent {
|
|
|
2996
3034
|
});
|
|
2997
3035
|
}
|
|
2998
3036
|
isSelected() {
|
|
2999
|
-
|
|
3000
|
-
return ((_a = this.selectionModel) === null || _a === void 0 ? void 0 : _a.allSelected.value) || false;
|
|
3037
|
+
return this.ifMultiSelectionModel(m => m.allSelected$.value, false);
|
|
3001
3038
|
}
|
|
3002
3039
|
isIntermediate() {
|
|
3003
|
-
|
|
3004
|
-
return ((_a = this.selectionModel) === null || _a === void 0 ? void 0 : _a.someSelected.value) || false;
|
|
3040
|
+
return this.ifMultiSelectionModel(m => m.someSelected$.value, false);
|
|
3005
3041
|
}
|
|
3006
3042
|
isVisible() {
|
|
3007
|
-
return this.enableHeaderControls && this.
|
|
3043
|
+
return this.enableHeaderControls && this.isMultiSelectionModel();
|
|
3044
|
+
}
|
|
3045
|
+
isMultiSelectionModel() {
|
|
3046
|
+
return HasDelegate.findRoot(this.selectionModel) instanceof MultipleSelectionModel;
|
|
3047
|
+
}
|
|
3048
|
+
ifMultiSelectionModel(runnable, otherwise) {
|
|
3049
|
+
if (this.isMultiSelectionModel()) {
|
|
3050
|
+
return runnable(this.selectionModel);
|
|
3051
|
+
}
|
|
3052
|
+
else {
|
|
3053
|
+
return otherwise;
|
|
3054
|
+
}
|
|
3008
3055
|
}
|
|
3009
3056
|
}
|
|
3010
3057
|
SelectionHeaderCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectionHeaderCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3011
3058
|
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"] }] });
|
|
3059
|
+
__decorate([
|
|
3060
|
+
TrackExternal(),
|
|
3061
|
+
__metadata("design:type", SelectionModel)
|
|
3062
|
+
], SelectionHeaderCellComponent.prototype, "selectionModel", void 0);
|
|
3012
3063
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectionHeaderCellComponent, decorators: [{
|
|
3013
3064
|
type: Component,
|
|
3014
3065
|
args: [{ selector: 'aup-selection-header-cell', template: "<mat-checkbox *ngIf=\"isVisible()\" [pectinCommand]=\"selectCommand\" [checked]=\"isSelected()\" [indeterminate]=\"this.isIntermediate()\" [color]=\"color\"></mat-checkbox>\n" }]
|
|
3015
|
-
}], ctorParameters: function () { return []; } });
|
|
3066
|
+
}], ctorParameters: function () { return []; }, propDecorators: { selectionModel: [] } });
|
|
3016
3067
|
|
|
3017
3068
|
class TableCellComponent extends DisposableComponent {
|
|
3018
3069
|
constructor() {
|
|
@@ -3149,7 +3200,7 @@ class TableRowMenuComponent extends DisposableComponent {
|
|
|
3149
3200
|
createMoreMenuCommand(item, value) {
|
|
3150
3201
|
const { when } = Dsl.disposeWith(this);
|
|
3151
3202
|
const command = item.factory.create(value);
|
|
3152
|
-
when(command.busy).becomesFalsey(() => {
|
|
3203
|
+
when(command.busy$).becomesFalsey(() => {
|
|
3153
3204
|
this.closeMoreMenu();
|
|
3154
3205
|
});
|
|
3155
3206
|
return command;
|
|
@@ -3464,6 +3515,7 @@ class SelectionColumnModel extends ColumnModel {
|
|
|
3464
3515
|
component.color = this._color;
|
|
3465
3516
|
}));
|
|
3466
3517
|
this.setSelectionModel(selectionModel);
|
|
3518
|
+
this.setMasterVisibility(this.selectionModel.enabled$);
|
|
3467
3519
|
}
|
|
3468
3520
|
setSelectionModel(selectionModel) {
|
|
3469
3521
|
this.selectionModel.setDelegate(selectionModel);
|
|
@@ -3699,11 +3751,12 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
3699
3751
|
return this.isRowSelectionEnabled() && column.isRowSelectionEnabled();
|
|
3700
3752
|
}
|
|
3701
3753
|
isRowSelectionEnabled() {
|
|
3702
|
-
return this.
|
|
3754
|
+
return this.hasUserSelectionModelThatIsEnabled() && !this.rowSelectionDisabledOnAllColumns$.value;
|
|
3703
3755
|
}
|
|
3704
|
-
|
|
3756
|
+
hasUserSelectionModelThatIsEnabled() {
|
|
3705
3757
|
var _a;
|
|
3706
|
-
|
|
3758
|
+
const userSelectionModel = (_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.selectionModel.getDelegate();
|
|
3759
|
+
return !!userSelectionModel && userSelectionModel.enabled$.value;
|
|
3707
3760
|
}
|
|
3708
3761
|
getSelectionModel() {
|
|
3709
3762
|
var _a;
|
|
@@ -4032,7 +4085,7 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
4032
4085
|
}
|
|
4033
4086
|
}
|
|
4034
4087
|
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 });
|
|
4035
|
-
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)\"
|
|
4088
|
+
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"] }] });
|
|
4036
4089
|
__decorate([
|
|
4037
4090
|
TrackExternal(),
|
|
4038
4091
|
__metadata("design:type", AbstractTableModel)
|
|
@@ -4047,7 +4100,7 @@ __decorate([
|
|
|
4047
4100
|
], TableBodyComponent.prototype, "showHeader", void 0);
|
|
4048
4101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TableBodyComponent, decorators: [{
|
|
4049
4102
|
type: Component,
|
|
4050
|
-
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)\"
|
|
4103
|
+
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"] }]
|
|
4051
4104
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { tableModel: [{
|
|
4052
4105
|
type: Input
|
|
4053
4106
|
}], showHeader$: [{
|
|
@@ -4769,14 +4822,14 @@ class VerticalFocusContainerComponent extends FocusContainerComponent {
|
|
|
4769
4822
|
this.focusManager = focusManager;
|
|
4770
4823
|
}
|
|
4771
4824
|
arrowLeft(event) {
|
|
4772
|
-
if (this.leftArrowCommand.enabled
|
|
4825
|
+
if (this.leftArrowCommand.enabled$.value) {
|
|
4773
4826
|
event.preventDefault();
|
|
4774
4827
|
event.stopPropagation();
|
|
4775
4828
|
this.leftArrowCommand.execute();
|
|
4776
4829
|
}
|
|
4777
4830
|
}
|
|
4778
4831
|
arrowRight(event) {
|
|
4779
|
-
if (this.rightArrowCommand.enabled
|
|
4832
|
+
if (this.rightArrowCommand.enabled$.value) {
|
|
4780
4833
|
event.preventDefault();
|
|
4781
4834
|
event.stopPropagation();
|
|
4782
4835
|
this.rightArrowCommand.execute();
|
|
@@ -5311,7 +5364,7 @@ class Activity extends DisposableComponent {
|
|
|
5311
5364
|
this._focused$ = this.registerDisposable(new DelegatingValueModel());
|
|
5312
5365
|
this._ready$ = new MutableValueModel(false);
|
|
5313
5366
|
this.class = "aup-activity";
|
|
5314
|
-
this.busyWhile(this.confirmCommand.busy);
|
|
5367
|
+
this.busyWhile(this.confirmCommand.busy$);
|
|
5315
5368
|
}
|
|
5316
5369
|
get isFocused() {
|
|
5317
5370
|
return this._focused$.value;
|
|
@@ -8312,7 +8365,7 @@ class InputActivity extends Activity {
|
|
|
8312
8365
|
this.cancelCommand = Command.create(() => {
|
|
8313
8366
|
this.cancel();
|
|
8314
8367
|
});
|
|
8315
|
-
this.busyWhile(this.confirmCommand.busy);
|
|
8368
|
+
this.busyWhile(this.confirmCommand.busy$);
|
|
8316
8369
|
this.onActivityReady(() => this.valueModel.focusContext.requestFocus());
|
|
8317
8370
|
}
|
|
8318
8371
|
get layout() {
|
|
@@ -8324,7 +8377,7 @@ class InputActivity extends Activity {
|
|
|
8324
8377
|
return (_a = this.activityData.cssClassName) !== null && _a !== void 0 ? _a : '';
|
|
8325
8378
|
}
|
|
8326
8379
|
onEscape() {
|
|
8327
|
-
if (this.shouldCancelOnEscape() && this.cancelCommand.enabled
|
|
8380
|
+
if (this.shouldCancelOnEscape() && this.cancelCommand.enabled$.value) {
|
|
8328
8381
|
this.cancelCommand.execute();
|
|
8329
8382
|
}
|
|
8330
8383
|
}
|
|
@@ -8364,7 +8417,7 @@ class StringInputActivity extends InputActivity {
|
|
|
8364
8417
|
}
|
|
8365
8418
|
StringInputActivity.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: StringInputActivity, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
8366
8419
|
StringInputActivity.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: StringInputActivity, selector: "aup-string-input-activity", usesInheritance: true, ngImport: i0, template: `
|
|
8367
|
-
<aup-string-input [
|
|
8420
|
+
<aup-string-input [value$]="valueModel"
|
|
8368
8421
|
[label]="activityData.label"
|
|
8369
8422
|
[placeholder]="activityData.placeholder"
|
|
8370
8423
|
[command.enter]="confirmCommand"
|
|
@@ -8373,13 +8426,13 @@ StringInputActivity.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
8373
8426
|
[confirmFace]="confirmFace"
|
|
8374
8427
|
[cancelFace]="cancelFace"
|
|
8375
8428
|
></aup-activity-actions>
|
|
8376
|
-
`, isInline: true, dependencies: [{ kind: "component", type: StringInputComponent, selector: "aup-string-input", inputs: ["autocomplete", "
|
|
8429
|
+
`, 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"] }] });
|
|
8377
8430
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: StringInputActivity, decorators: [{
|
|
8378
8431
|
type: Component,
|
|
8379
8432
|
args: [{
|
|
8380
8433
|
selector: 'aup-string-input-activity',
|
|
8381
8434
|
template: `
|
|
8382
|
-
<aup-string-input [
|
|
8435
|
+
<aup-string-input [value$]="valueModel"
|
|
8383
8436
|
[label]="activityData.label"
|
|
8384
8437
|
[placeholder]="activityData.placeholder"
|
|
8385
8438
|
[command.enter]="confirmCommand"
|
|
@@ -8410,7 +8463,7 @@ class SelectInputActivity extends InputActivity {
|
|
|
8410
8463
|
}
|
|
8411
8464
|
SelectInputActivity.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectInputActivity, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
8412
8465
|
SelectInputActivity.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: SelectInputActivity, selector: "aup-select-input-activity", usesInheritance: true, ngImport: i0, template: `
|
|
8413
|
-
<aup-select-input [
|
|
8466
|
+
<aup-select-input [value$]="valueModel"
|
|
8414
8467
|
[label]="activityData.label"
|
|
8415
8468
|
[placeholder]="activityData.placeholder"
|
|
8416
8469
|
[command.enter]="confirmCommand"
|
|
@@ -8422,13 +8475,13 @@ SelectInputActivity.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
8422
8475
|
[confirmFace]="confirmFace"
|
|
8423
8476
|
[cancelFace]="cancelFace"
|
|
8424
8477
|
></aup-activity-actions>
|
|
8425
|
-
`, 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"] }] });
|
|
8478
|
+
`, 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"] }] });
|
|
8426
8479
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SelectInputActivity, decorators: [{
|
|
8427
8480
|
type: Component,
|
|
8428
8481
|
args: [{
|
|
8429
8482
|
selector: 'aup-select-input-activity',
|
|
8430
8483
|
template: `
|
|
8431
|
-
<aup-select-input [
|
|
8484
|
+
<aup-select-input [value$]="valueModel"
|
|
8432
8485
|
[label]="activityData.label"
|
|
8433
8486
|
[placeholder]="activityData.placeholder"
|
|
8434
8487
|
[command.enter]="confirmCommand"
|
|
@@ -8650,7 +8703,7 @@ class InlineStringEditorComponent extends DisposableComponent {
|
|
|
8650
8703
|
this.editingEnabled.setDelegate(this.editorModel.editingEnabled);
|
|
8651
8704
|
when(this.editorModel.editing).becomesTruthy(() => {
|
|
8652
8705
|
this.editCommand.execute();
|
|
8653
|
-
}, { asLongAs: this.editCommand.enabled });
|
|
8706
|
+
}, { asLongAs: this.editCommand.enabled$ });
|
|
8654
8707
|
when(this.editorModel.editing).becomesFalsey(() => this.cancelEdit());
|
|
8655
8708
|
this.empty = valueOf.any(chain.stringValue(this.editorModel.valueModel).isBlank()
|
|
8656
8709
|
// deviceDescription.isNil()
|
|
@@ -8682,7 +8735,7 @@ class InlineStringEditorComponent extends DisposableComponent {
|
|
|
8682
8735
|
}
|
|
8683
8736
|
}
|
|
8684
8737
|
startEdit() {
|
|
8685
|
-
if (!this.isEditing() && this.editCommand.enabled
|
|
8738
|
+
if (!this.isEditing() && this.editCommand.enabled$.value) {
|
|
8686
8739
|
this.editCommand.execute();
|
|
8687
8740
|
}
|
|
8688
8741
|
}
|
|
@@ -8694,7 +8747,7 @@ class InlineStringEditorComponent extends DisposableComponent {
|
|
|
8694
8747
|
}
|
|
8695
8748
|
}
|
|
8696
8749
|
InlineStringEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: InlineStringEditorComponent, deps: [{ token: InteractionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
8697
|
-
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
|
|
8750
|
+
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"] }] });
|
|
8698
8751
|
__decorate([
|
|
8699
8752
|
TrackExternal(),
|
|
8700
8753
|
__metadata("design:type", InlineEditorModel)
|
|
@@ -8717,7 +8770,7 @@ __decorate([
|
|
|
8717
8770
|
], InlineStringEditorComponent.prototype, "placeHolderModel", void 0);
|
|
8718
8771
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: InlineStringEditorComponent, decorators: [{
|
|
8719
8772
|
type: Component,
|
|
8720
|
-
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
|
|
8773
|
+
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" }]
|
|
8721
8774
|
}], ctorParameters: function () { return [{ type: InteractionService }]; }, propDecorators: { editorModel: [{
|
|
8722
8775
|
type: Input
|
|
8723
8776
|
}], facesModel: [{
|