@coolon/angular-ui-powerups 0.0.129 → 0.0.133
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 +48 -8
- 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.js +5 -1
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.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/esm2015/lib/components/forms/string-input/string-input.component.js +32 -2
- package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
- package/esm5/lib/components/components.module.js +5 -1
- package/esm5/lib/components/components.module.js.map +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/esm5/lib/components/forms/string-input/string-input.component.js +33 -3
- package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +48 -8
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +50 -9
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/select-input/select-input.component.d.ts +4 -1
- package/lib/components/forms/string-input/string-input.component.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@coolon/pectin'), require('@angular/cdk/portal'), require('@angular/router'), require('@coolon/typescript-utilities'), require('lodash'), require('@angular/material/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material', '@angular/material/tabs', '@angular/platform-browser/animations', '@coolon/pectin', '@angular/cdk/portal', '@angular/router', '@coolon/typescript-utilities', 'lodash', '@angular/material/
|
|
4
|
-
(global = global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material, global.ng.material.tabs, global.ng.platformBrowser.animations, global.pectin, global.ng.cdk.portal, global.ng.router, global.typescriptUtilities, global.___default, global.ng.material.
|
|
5
|
-
}(this, function (exports, common, core, forms, material, tabs, animations, pectin, portal, router, typescriptUtilities, ___default,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/material/button'), require('@angular/material/icon'), require('@coolon/pectin'), require('@angular/cdk/portal'), require('@angular/router'), require('@coolon/typescript-utilities'), require('lodash'), require('@angular/material/list'), require('@angular/material/tooltip'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('@angular/animations'), require('resize-observer-polyfill'), require('@angular/material/dialog'), require('rxjs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/material/button', '@angular/material/icon', '@coolon/pectin', '@angular/cdk/portal', '@angular/router', '@coolon/typescript-utilities', 'lodash', '@angular/material/list', '@angular/material/tooltip', '@typescript-plus/fast-memoize-decorator/dist/src', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', '@angular/animations', 'resize-observer-polyfill', '@angular/material/dialog', 'rxjs'], factory) :
|
|
4
|
+
(global = global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.material.button, global.ng.material.icon, global.pectin, global.ng.cdk.portal, global.ng.router, global.typescriptUtilities, global.___default, global.ng.material.list, global.ng.material.tooltip, global.src, global.fastMemoizeDecorator, null, global.ng.animations, global.ResizeObserver, global.ng.material.dialog, global.rxjs));
|
|
5
|
+
}(this, function (exports, common, core, forms, material, tabs, animations, button, icon, pectin, portal, router, typescriptUtilities, ___default, list, tooltip, src, fastMemoizeDecorator, reflectMetadata, animations$1, ResizeObserver, dialog, rxjs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var ___default__default = 'default' in ___default ? ___default['default'] : ___default;
|
|
8
8
|
ResizeObserver = ResizeObserver && ResizeObserver.hasOwnProperty('default') ? ResizeObserver['default'] : ResizeObserver;
|
|
@@ -972,7 +972,7 @@
|
|
|
972
972
|
SelectInputComponent.decorators = [
|
|
973
973
|
{ type: core.Component, args: [{
|
|
974
974
|
selector: 'aup-select-input',
|
|
975
|
-
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",
|
|
975
|
+
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",
|
|
976
976
|
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
977
977
|
}] }
|
|
978
978
|
];
|
|
@@ -982,6 +982,9 @@
|
|
|
982
982
|
optionsModel: [{ type: core.Input }],
|
|
983
983
|
options: [{ type: core.Input }],
|
|
984
984
|
optionLabel: [{ type: core.Input }],
|
|
985
|
+
allowNil: [{ type: core.Input }],
|
|
986
|
+
optionTemplateRef: [{ type: core.ContentChild, args: ["optionTemplate", { static: false },] }],
|
|
987
|
+
nilOptionTemplateRef: [{ type: core.ContentChild, args: ["nilOptionTemplate", { static: false },] }],
|
|
985
988
|
optionLabelFormat: [{ type: core.Input }]
|
|
986
989
|
};
|
|
987
990
|
__decorate([
|
|
@@ -1002,6 +1005,12 @@
|
|
|
1002
1005
|
/** @type {?} */
|
|
1003
1006
|
SelectInputComponent.prototype.optionLabel;
|
|
1004
1007
|
/** @type {?} */
|
|
1008
|
+
SelectInputComponent.prototype.allowNil;
|
|
1009
|
+
/** @type {?} */
|
|
1010
|
+
SelectInputComponent.prototype.optionTemplateRef;
|
|
1011
|
+
/** @type {?} */
|
|
1012
|
+
SelectInputComponent.prototype.nilOptionTemplateRef;
|
|
1013
|
+
/** @type {?} */
|
|
1005
1014
|
SelectInputComponent.prototype.optionLabelFormat;
|
|
1006
1015
|
}
|
|
1007
1016
|
|
|
@@ -1012,7 +1021,16 @@
|
|
|
1012
1021
|
var StringInputComponent = /** @class */ (function (_super) {
|
|
1013
1022
|
__extends(StringInputComponent, _super);
|
|
1014
1023
|
function StringInputComponent() {
|
|
1015
|
-
|
|
1024
|
+
var _this = _super.call(this) || this;
|
|
1025
|
+
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1026
|
+
_this.clearCommand = pectin.Command.create((/**
|
|
1027
|
+
* @return {?}
|
|
1028
|
+
*/
|
|
1029
|
+
function () {
|
|
1030
|
+
_this.valueModel.value = null;
|
|
1031
|
+
}));
|
|
1032
|
+
_this.clearCommand.disableWhile(chain(_this.valueModel).isNil());
|
|
1033
|
+
return _this;
|
|
1016
1034
|
}
|
|
1017
1035
|
/**
|
|
1018
1036
|
* @return {?}
|
|
@@ -1025,14 +1043,34 @@
|
|
|
1025
1043
|
StringInputComponent.decorators = [
|
|
1026
1044
|
{ type: core.Component, args: [{
|
|
1027
1045
|
selector: 'aup-string-input',
|
|
1028
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n 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-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
|
|
1046
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n 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-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <button mat-button mat-icon-button matSuffix *ngIf=\"allowClear && clearCommand.enabled.value\" [pectinCommand]=\"clearCommand\">\n <mat-icon>close</mat-icon>\n </button>\n</mat-form-field>\n\n",
|
|
1029
1047
|
styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}"]
|
|
1030
1048
|
}] }
|
|
1031
1049
|
];
|
|
1032
1050
|
/** @nocollapse */
|
|
1033
1051
|
StringInputComponent.ctorParameters = function () { return []; };
|
|
1052
|
+
StringInputComponent.propDecorators = {
|
|
1053
|
+
allowClearModel: [{ type: core.Input }],
|
|
1054
|
+
allowClear: [{ type: core.Input }]
|
|
1055
|
+
};
|
|
1056
|
+
__decorate([
|
|
1057
|
+
pectin.UseDelegate({ defaultValue: false }),
|
|
1058
|
+
__metadata("design:type", pectin.ValueModel)
|
|
1059
|
+
], StringInputComponent.prototype, "allowClearModel", void 0);
|
|
1060
|
+
__decorate([
|
|
1061
|
+
pectin.StoreInValueModel('allowClearModel'),
|
|
1062
|
+
__metadata("design:type", Boolean)
|
|
1063
|
+
], StringInputComponent.prototype, "allowClear", void 0);
|
|
1034
1064
|
return StringInputComponent;
|
|
1035
1065
|
}(AbstractInputComponent));
|
|
1066
|
+
if (false) {
|
|
1067
|
+
/** @type {?} */
|
|
1068
|
+
StringInputComponent.prototype.allowClearModel;
|
|
1069
|
+
/** @type {?} */
|
|
1070
|
+
StringInputComponent.prototype.allowClear;
|
|
1071
|
+
/** @type {?} */
|
|
1072
|
+
StringInputComponent.prototype.clearCommand;
|
|
1073
|
+
}
|
|
1036
1074
|
|
|
1037
1075
|
/**
|
|
1038
1076
|
* @fileoverview added by tsickle
|
|
@@ -1077,7 +1115,9 @@
|
|
|
1077
1115
|
material.MatFormFieldModule,
|
|
1078
1116
|
material.MatSelectModule,
|
|
1079
1117
|
tabs.MatTabsModule,
|
|
1080
|
-
DirectivesModule
|
|
1118
|
+
DirectivesModule,
|
|
1119
|
+
icon.MatIconModule,
|
|
1120
|
+
button.MatButtonModule
|
|
1081
1121
|
],
|
|
1082
1122
|
exports: [
|
|
1083
1123
|
NumberInputComponent,
|