@coolon/angular-ui-powerups 0.0.129 → 0.0.130
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/bundles/coolon-angular-ui-powerups.umd.js +10 -1
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.js +11 -2
- package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/forms/select-input/select-input.component.js +11 -2
- package/esm5/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +11 -2
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +11 -2
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/select-input/select-input.component.d.ts +4 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DOCUMENT, CommonModule, Location } from '@angular/common';
|
|
2
|
-
import { Directive, ElementRef, Inject, Input, HostListener, NgZone, NgModule, EventEmitter, Output, Component, InjectionToken, Injector, ComponentFactoryResolver, ViewContainerRef, ViewChild, ViewChildren, Injectable, ɵɵdefineInjectable, ɵɵinject, Optional, SkipSelf, HostBinding } from '@angular/core';
|
|
2
|
+
import { Directive, ElementRef, Inject, Input, HostListener, NgZone, NgModule, EventEmitter, Output, Component, ContentChild, InjectionToken, Injector, ComponentFactoryResolver, ViewContainerRef, ViewChild, ViewChildren, Injectable, ɵɵdefineInjectable, ɵɵinject, Optional, SkipSelf, HostBinding } from '@angular/core';
|
|
3
3
|
import { FormsModule } from '@angular/forms';
|
|
4
4
|
import { MatInputModule, MatFormFieldModule, MatSelectModule, MatButtonModule, MatDialogModule, MatTabsModule as MatTabsModule$1, MatProgressSpinnerModule, MatDialog } from '@angular/material';
|
|
5
5
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
@@ -789,7 +789,7 @@ var SelectInputComponent = /** @class */ (function (_super) {
|
|
|
789
789
|
SelectInputComponent.decorators = [
|
|
790
790
|
{ type: Component, args: [{
|
|
791
791
|
selector: 'aup-select-input',
|
|
792
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngFor=\"let option of optionsModel.value\" [value]=\"option\">{{optionLabelFormat(option)}}\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
792
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n <mat-option *ngFor=\"let option of optionsModel.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=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
793
793
|
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
794
794
|
}] }
|
|
795
795
|
];
|
|
@@ -799,6 +799,9 @@ var SelectInputComponent = /** @class */ (function (_super) {
|
|
|
799
799
|
optionsModel: [{ type: Input }],
|
|
800
800
|
options: [{ type: Input }],
|
|
801
801
|
optionLabel: [{ type: Input }],
|
|
802
|
+
allowNil: [{ type: Input }],
|
|
803
|
+
optionTemplateRef: [{ type: ContentChild, args: ["optionTemplate", { static: false },] }],
|
|
804
|
+
nilOptionTemplateRef: [{ type: ContentChild, args: ["nilOptionTemplate", { static: false },] }],
|
|
802
805
|
optionLabelFormat: [{ type: Input }]
|
|
803
806
|
};
|
|
804
807
|
__decorate([
|
|
@@ -819,6 +822,12 @@ if (false) {
|
|
|
819
822
|
/** @type {?} */
|
|
820
823
|
SelectInputComponent.prototype.optionLabel;
|
|
821
824
|
/** @type {?} */
|
|
825
|
+
SelectInputComponent.prototype.allowNil;
|
|
826
|
+
/** @type {?} */
|
|
827
|
+
SelectInputComponent.prototype.optionTemplateRef;
|
|
828
|
+
/** @type {?} */
|
|
829
|
+
SelectInputComponent.prototype.nilOptionTemplateRef;
|
|
830
|
+
/** @type {?} */
|
|
822
831
|
SelectInputComponent.prototype.optionLabelFormat;
|
|
823
832
|
}
|
|
824
833
|
|